Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lights turning on randomly (usually at night) #85

Closed
Just-Insane opened this issue Feb 6, 2021 · 66 comments
Closed

Lights turning on randomly (usually at night) #85

Just-Insane opened this issue Feb 6, 2021 · 66 comments

Comments

@Just-Insane
Copy link

Hello,

I’m having an issue where the lights in some of my rooms are turning on all at the same time every night, and turning them off manually results in them turning back on after a few seconds to a few minutes.

turning off the adaptive-lighting control switch for those rooms results in the lights staying off, however this is not ideal due to having to manually turn the switch back on in the morning.

The lights turning on does not seem to be activated by my motion sensors as I would expect the lights to turn off after the specified time in those automations.

I haven’t found anything in the log book or history in home assistant that would point at the problem.

@soundslikeluke
Copy link

I have had the exact same issue it was driving me crazy trying to figure out what was causing the issues after a close examination of the log viewer I found it was caused by Adaptive Lighting.

The way I was triggering the lights was through motion Sensors. They were changing perfectly and adapting that why It took so long to work out this was the cause. It happened when the lights would turn off through automation. The lights were getting the signal to turn off and that was successful but there something would trigger the lights to turn back on but the issue would be they will stay on until manual intervention.

After removing adaptive lighting from having control of the lights they stay off now and have been working Perfectly. I love this feature so hopefully, this can get resolved.

@Just-Insane
Copy link
Author

Agreed, it’s very odd.

Right now I have my Hue motion sensors setup to turn on my lights via a call to adaptive lighting on a motion event via Node-Red. As part of that automation, a timer is started for each motion sensor for 10 minutes, after which the lights turn off via a regular call to HA (outside of adaptive lighting).

I would expect this to work correctly with the function that tracks outside light adjustment and overrides adaptive lighting.

I have noticed times where the lights won’t turn off during the day, and also times where lights turn on randomly when I know there isn’t a motion event.

@soundslikeluke
Copy link

I'm doing a very similar thing. I tried triggering them via the hue app and node red with a similar automation that starts a timer to turn off the light. I was just turning the light on an off and adaptive lighting would change it.

I'm using the hue sensors via the hue hub. I was thinking it was the hub and was about to buy a con bee II. I'm not sure if there is a way to make it work maybe only adapt the light once when it turns on not continuously

@trevorbenyack
Copy link

trevorbenyack commented Feb 13, 2021

So I've had issues with the lights turning back on for two reasons (I think...):

  1. Misalignment of groups between deCONZ and HA. In other words, using light groups in deCONZ and then selecting individual lights in AL (and vice versa). e.g. I had a total of 8 lights in the living room grouped together in deCONZ and had my motion sensors, remote control, and AL control that group. When watching TV I only wanted the lights behind me to turn off, so I would turn them off individually but they would pop back on since the group command kept getting sent from AL. Once I used the same light entity IDs between the motion sensors/remote and AL, the problem was vastly reduced. The reason being that AL is only scanning for the entity IDs that were selected. So if you're turning the light on/off individually and AL is set to only look for the group entity, it won't see it as an internal HA command. It may pick up the change, but it will be because it's detected a change that was made outside of HA and that feature is pretty unreliable imho. This kinda sucks because you can't get all your lights to turn on at exactly the same time (they go one-by-one) using a deCONZ group, but it's better than them turning on randomly. -- Side note, you can use deCONZ groups, you just need to make sure they are what you've selected in AL. For example, I have a lamp with three bulbs in it that are never turned off individually, so I grouped those and then used that deCONZ group in HA.

  2. I had separate commands turned on for my IKEA lights... Ikea lights will ignore a second immediate command if the first had a transition time specified, so to get around this you can either set a transition time of 0 or send the commands separately. I had no luck sending the command separately in AL with a transition time of 1, so I set it to 0 and still kept the commands being sent separately. That was unnecessary and I believe was resulting in them being turned back on by the second light.turn_on service call.

Not sure if these situations will apply to any of you, but it's something to look out for regardless.

@soundslikeluke
Copy link

I wasn't using deCONZ groups but I am using the IKEA lights and I am pretty sure they had a transition time on them. And they were the main culprit of turning back on. Did making these changes result in the lights staying off or were they still turning back on?

@trevorbenyack
Copy link

trevorbenyack commented Feb 13, 2021 via email

@ceesvanegmond
Copy link

Same issue over here. Thought it was because of zigbee2mqtt; but it's not.

Koenkk/zigbee2mqtt#6239

@bcutter
Copy link

bcutter commented Apr 17, 2021

Happy to find this issue as I‘m seeing the same crazy behavior too. It’s really driving me crazy as I don’t can track down a pattern or trigger for lights being turned on automatically.

How to debug and finally fix this?!?

As logbook doesn’t provide detailed information (trigger for light being turned on - usually it would specify user name when switched on via Home Assistant GUI or Service/Switch name when physical switch is used) the only remaining suspect is Adaptive Lighting. Using deCONZ by the way.

Especially annoying when outside lights being turned on randomly during the night, neighbors love that for sure!!!

2C7BDF47-B1E6-4A64-995B-07037A696F2C

@sevorl
Copy link

sevorl commented Jun 15, 2021

Same problem here with adaptive lighting, deconz and ikea bulbs.
A few seconds I turn off a group of lights using the ikea 5way button, one or two random lights turn back on again.
This does not make it easy to convince my wife that homeassistant is great😊

@alexvdleek
Copy link

Have the same problem, came here to look for the solution.
Sometimes a light turns on within a few seconds after automation or by 'hand' turns light off.
Ikea lights, LIDL motion sensor and a ikea 5 button switch.
Happens any time of the day.
After disabling adaptive lighting no more issues.
A pity, i love adaptive lighting.

@soundslikeluke
Copy link

For me the solution was the latest updates and only have the first 2 options selected when setting up the lights. I have never had any issues since

@bcutter
Copy link

bcutter commented Aug 29, 2021

For me the solution was the latest updates and only have the first 2 options selected when setting up the lights. I have never had any issues since

Can you specify this please? Which "two options" exactly?

Updates didn't fix this so far (for me + others) unfortunately.

@alexvdleek
Copy link

The solution from soundslikeluke worked for me, Thank you !
I had the latest update. But deselecting one of the bottom options in adaptive lighting settings made the difference.
Lights activated by a button reacted instantly, no more lag or (one) coming back on after a few seconds.
I have an ikea motion sensor which i thought was broken ( light on worked but never switches light off) works again.

@sevorl
Copy link

sevorl commented Aug 30, 2021

@alexvdleek , @soundslikeluke , could you get more specific about what "the first 2 options" mean?

Are you talking about the checkboxes at the bottom of the configuration screen?
There are four checkboxes:

  • only_once
  • take_over_control
  • detect_non-ha-changes
  • separate_turn_on_commands

Are these the options you are refering to?

This is still a problem for me, and I would really love to understand how you fixed it.

@soundslikeluke
Copy link

Hello @sevorl

Yes, those are the options I am referring to just tick the first two and leave the rest, That's what fixed my issues and it has been rock solid ever since.

@alexvdleek
Copy link

Hey sevorl,

As I understand that was what soundslikeluke meant.
So I unchecked one of the lower boxes and only have 'Take over control' checked, one of the first two.
That worked for me.

@bcutter
Copy link

bcutter commented Aug 30, 2021

For me the solution was the latest updates and only have the first 2 options selected when setting up the lights. I have never had any issues since

I bet the "only once" option (1st of 4 in the config option list at the bottom) "fixed" it for you. If this option does what I think and description says, once you turned on a light it won't get adjusted until it's being turned off and on again.

That means you loose a huge argument for using AL at all (in some rooms my lights are on for a long time so I want and need the color and brightness auto adjustments).

So finally:

  1. "only once" option is not a fix. This issue is still an issue.
  2. But the "only once" option and what it does could be a first "hot hint" for devs when researching/investigating this issue.

@bcutter
Copy link

bcutter commented Sep 21, 2021

Sometimes I really wonder what is going on with some lights. Is it the automation? Or is it Adaptive Lighting? One is being turned on and off heavily and I can´t find any pattern.

grafik

I use automations based on this blueprint, basically it just works with timers: https://community.home-assistant.io/t/execute-any-service-turn-on-switch-light-scene-scripts-etc-even-run-another-automation-based-on-any-entitys-state-change-motion-sensor-illuminance-sun-rise-set/268132

@LeChuck2909
Copy link

Hi, im so glad to find this issue, i have also noticed ghost switches, which seems to be not present, when adaptive light brightness is turned off. also i have this generic logbook entries, where its not clear what acutally turned on the light.

@bcutter
Copy link

bcutter commented Nov 4, 2021

Hi, im so glad to find this issue, i have also noticed ghost switches, which seems to be not present, when adaptive light brightness is turned off. also i have this generic logbook entries, where its not clear what acutally turned on the light.

Glad to see you're not alone, right. But as you can see here's not really progress, this issue exists for months.

To add something constructive: I set the "only pass once" option some weeks ago, which improves things - but lights are still turned on and off completely randomly. ONLY lights which are controlled by AL. Proof enough this integration does crazy things for no obvious reason.

Feels almost like a "presence faking feature" (holiday mode). It's not a feature but a bug, right?

@LeChuck2909
Copy link

Hi,
with the release of 1.0.15 i was looking forward, if any of the complains of this issue have been resloved. Sadly this is not the case. I want to use this opprtunity to emphasize, that in my case this is not a minor bug, but is almost as predominant as the features itself.
I know this is far off, from a usable bug report, but comparing the magnitude of presence of the bug compared to featureset, i ask you to please take a look at this. As time goes by, and also HA versions get released, im can not exclude, that even the behavior of "this bug" evolves ....

right now the situation is as follows, there is at least 1 lamp (which is cotrolled by this integration) which turn it self on again, quite afer i turend it on.

so i can trigger it. maybe we can use this condition to trace the isse down ?

thx!

@bcutter
Copy link

bcutter commented Dec 27, 2021

Since enabling the "only pass once" setting I never experienced this issue again. That came with the trade-off of neutering AL down to a static light management unfortunately. No dynamic ("adapting") changes of light anymore.

Wish we could have both. AL feature without this extremely annoying bug.

@LeChuck2909
Copy link

yeah, so i guess the whole idea of this integration is to have this contiuously adjustment

@RubenKelevra RubenKelevra self-assigned this Jan 9, 2022
@thecastle20
Copy link

I've started having this issue as well. It's definitely adaptive lighting as disabling it stops the behaviour. I have latest HA & AL versions, use only philips hue lights with conbee 2 & zigbee2mqtt. Almost all lights are 255 lqi and the behavior occurs semi randomly but is when AL is adjusting the light brightness per schedule. Let me know what debug you would like me to run / debug or config files.

@thecastle20
Copy link

Can anyone having this problem with zigbee2mqtt post their configuration.yaml as well as devices.yaml and groups.yaml?

I was having a similar issue until I set optimistic to true for each light. Without that, changing a light wouldn't actually reflect a state_change to home assistant.

Configuration.yaml from zigbee2mqtt below. Includes groups/devices.

homeassistant: true mqtt: server: mqtt://core-mosquitto:1883 user: addons password: <removed> keepalive: 60 reject_unauthorized: true version: 4 serial: port: /dev/ttyACM0 adapter: deconz frontend: port: 8099 permit_join: false devices: '0x00178801093ab625': friendly_name: Hallway Back Door transition: 0 '0x001788010207e7cb': friendly_name: Kitchen Dining Main transition: 0 '0x0017880110297f3d': friendly_name: Master Bedroom Main transition: 0 '0x00178801066a6af1': friendly_name: Gym Overhead transition: 1 '0x001788010207e3a8': friendly_name: Lounge Main transition: 0 '0x00178801098c8ce5': friendly_name: Lounge Speaker - Left transition: 0 '0x00178801085d322e': friendly_name: Lounge Speaker Right transition: 0 '0x001788010b44b388': friendly_name: Lounge Cabinet Accent transition: 0 '0x001788010bf2c05f': friendly_name: Lounge Couch Accent transition: 0 '0x00158d0006d6ca8e': friendly_name: Kitchen Bifold Doors '0x001788010bce21e8': friendly_name: Motion Sensor - Lounge '0x00158d000709b54e': friendly_name: Smartcube Lounge '0x0017880108bef51a': friendly_name: Lounge Lamp transition: 0 '0x54ef4410004cde77': friendly_name: Lounge - Left Window '0x54ef4410004c71f3': friendly_name: Lounge - Right Window '0x0017880108af35ff': friendly_name: Hallway Front Door transition: 0 '0x001788010c572782': friendly_name: Lounge Audio Accents transition: 0 '0x001788010bf652e5': friendly_name: Lounge - Green Lamp '0x001788010c50a406': friendly_name: Kitchen Bench - Cooktop - B '0x001788010c50aaa8': friendly_name: Kitchen Bench - Cooktop - A '0x001788010c509fc1': friendly_name: Kitchen Bench - Prep - C '0x001788010c50944c': friendly_name: Kitchen Bench - Prep - A '0x001788010c509908': friendly_name: Kitchen Bench - Prep - B '0x001788010c571650': friendly_name: Master Bedroom - Accents '0x001788010c830213': friendly_name: Office Main groups: '1': friendly_name: Lounge_Accents devices: - 0x001788010b44b388/11 - 0x001788010bf2c05f/11 - 0x00178801098c8ce5/11 - 0x00178801085d322e/11 '2': friendly_name: Hallway_Lights devices: - 0x00178801093ab625/11 - 0x0017880108af35ff/11 '3': friendly_name: Lounge_All_Lights devices: - 0x001788010207e3a8/11 - 0x001788010b44b388/11 - 0x001788010c572782/11 '4': friendly_name: Kitchen_Main_Lights devices: - 0x001788010c50aaa8/11 - 0x001788010c50a406/11 - 0x001788010c50944c/11 - 0x001788010c509908/11 - 0x001788010c509fc1/11 '5': friendly_name: Master_Bedroom_All devices: - 0x0017880110297f3d/11 - 0x001788010c571650/11 advanced: log_level: info

@johnlento
Copy link

johnlento commented Apr 29, 2023 via email

@bcutter
Copy link

bcutter commented Apr 29, 2023

I solved this by just turning off adaptive lighting when I turn off the light. So every time I hit a switch or via the Ui it turns the light group and adaptive lighting switch off. Then it turns on when I turn it on. Get Outlook for iOShttps://aka.ms/o0ukef

Neat workaround - with bad limitations. I don't have an AL instance for all my single lights or groups of lights turned on/off together. And the need for adjusting all automations, scripts etc. is another downside. In fact I'm doing this already for one AL instance, but I'm not willing to extend this to all my other AL instances.

Nice approach but... hopefully the integration manages to fix this some day so it actually adds a benefit (again) next to bothering because of these significant issues.

@thecastle20
Copy link

I solved this by just turning off adaptive lighting when I turn off the light. So every time I hit a switch or via the Ui it turns the light group and adaptive lighting switch off. Then it turns on when I turn it on. Get Outlook for iOShttps://aka.ms/o0ukef

Good tip. I don't have a huge amount of lights so I guess this will have to be the work around. It seems to show up/become obvious once I add more than three instances of the addon for different light groups.

@JoshSald
Copy link

JoshSald commented Jun 8, 2023

I've been experiencing the same, especially when HA restarts where my Ikea kitchen cabinet lights and the light that usually comes on via a motion sensor turns on automatically usually in the mornings. I had been looking all over the place for some rogue automation that I might have set up somewhere or something buggy, but turning off AL seemed to stop the issue. I've basically set up the affected lights exactly as @johnlento has, but as mentioned, it's not ideal. I'm surprised there is still no official fix.

I would need to look if another issue exists, but I've also noticed that Ikea's Tradfri bulbs generally don't actually turn off sometimes (even though they appear to be off in HA). I am assuming that this is also related and may be an Ikea issue because none of my non-Ikea lights have been affected.

@basnijholt
Copy link
Owner

basnijholt commented Jul 27, 2023

🥳 🎉

I believe this issue is fixed by #663.

The main reason for lights turning on is because for some reason: the light will incorrectly report its state as on!

Because AL then notices a state change, and this state is likely not precisely what it should be according to AL, it will adapt it to the correct state, inadvertently turning the lights on.

In PR #663, I have made some changes. With that code when detect_non_ha_changes: false and there is a state change which is not the result of a light.turn_on, it will mark the light as manually controlled and not adapt it at all.

Related issues: #10 #622

@dimatx
Copy link

dimatx commented Jul 27, 2023

This is great news 😄. I will turn on the adaptive lighting for the bedroom lights back on. Will test and report back.

@bcutter
Copy link

bcutter commented Jul 27, 2023

That's reaaaaaaaally great and convincing news 👌🏼

Will wait for the PR being tested and merged and hopefully test the new release once available. Oh that would be awesome, waiting so long for this 😃

@basnijholt
Copy link
Owner

Hi folks!

I have merged #663 and released v1.18.0. Set detect_non_ha_changes: false for the switches that contain the lights that accidentally turn on.

I will close this issue and would really appreciate folks reporting back on whether the issue is fixed. ⚙️

Thanks everyone for your support and patience in getting this issue fixed! 🙌❤️

@basnijholt
Copy link
Owner

BTW if you have debugging logging enabled you'll see messages like these:

2023-07-28 12:40:00.233 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bedroom: Ignoring 'off' → 'on' event for 'light.baby_room' with context.id='01H6F07PV5V2HD7W30083Y8RZS' because 'light.turn_on' was not called by HA and 'detect_non_ha_changes' is False

This would previously have turned on the light 💡

@bcutter
Copy link

bcutter commented Jul 29, 2023

I upgraded to v1.18.0, made sure detect_non_ha_changes is still false and additionally disabled the only_once setting, which was my workaround for the flickering/flashing issue during transition (see #44), hoping this might have improved meanwhile too.

Will turn back in a few days, hopefully without observations of randomly turned on lights.

@dimatx
Copy link

dimatx commented Jul 29, 2023

I'm testing with now with 1.18 as well.

@dimatx
Copy link

dimatx commented Aug 3, 2023

Initial report out, Bas... So far, no issues with phantom lights turning on in the middle of the night :) 💤

@bcutter
Copy link

bcutter commented Aug 3, 2023

Didn't see phantom turned on lights in the middle of the night either the last days.

Just not sure yet if #44 is okay now too, will need to test a bit longer.

@basnijholt
Copy link
Owner

OK that is great to hear!

I fixed a couple of other bugs in 1.18.3. I hope I didn't introduce any new bugs though 😅

@robmarshall2
Copy link

I've Just moved house and set up a new HA using Adaptive lighting for the first time, so have no history at all. I'm using 1.18.3, and IKEA bulbs. I'm afraid after turning off the 8 bulbs 2-3 will always turn straight back on, albeit dimmed. I've not experienced them turning on at any other time, just straight after turning off.

@basnijholt
Copy link
Owner

@robmarshall2, I’d really appreciate it if you could enable debug logging and share your logs. The README shows how to do that.

@robmarshall2
Copy link

robmarshall2 commented Aug 8, 2023

@basnijholt here you go, hopefully this comes out a suitable format, apologies if not.

2023-08-08 17:15:42.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.living_room_wall_lights to ['light.lightlivingroomwall1_light', 'light.lightlivingroomwall2_light_2', 'light.lightlivingroomwall3_light', 'light.lightlivingroomwall4_light_2']
2023-08-08 17:15:42.471 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall1_light', 'light.lightlivingroomwall2_light_2', 'light.lightlivingroomwall3_light', 'light.lightlivingroomwall4_light_2']')' event with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightlivingroomwall4_light_2' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightlivingroomwall4_light_2'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXHGK:al:JRUX:lght:43' lights: '['light.lightlivingroomwall4_light_2']', transition: '1.0', force: 'True'
2023-08-08 17:15:42.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : filtered_lights: '['light.lightlivingroomwall4_light_2']'
2023-08-08 17:15:42.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall4_light_2' with transition 1.0 and context.id=01H7AYXHGK:al:JRUX:lght:43
2023-08-08 17:15:42.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.612 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall4_light_2
2023-08-08 17:15:42.612 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall4_light_2 with service data {'entity_id': 'light.lightlivingroomwall4_light_2', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:42.613 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall4_light_2', context=<homeassistant.core.Context object at 0x7f30fd6cf380>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668440>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:42.620 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall4_light_2', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXHGK:al:JRUX:lght:43'
2023-08-08 17:15:42.621 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall4_light_2']')' event with context.id='01H7AYXHGK:al:JRUX:lght:43'
2023-08-08 17:15:42.694 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.694 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightlivingroomwall3_light' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.694 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.694 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightlivingroomwall3_light'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:42.694 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.695 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXHK7:al:JRUX:lght:44' lights: '['light.lightlivingroomwall3_light']', transition: '1.0', force: 'True'
2023-08-08 17:15:42.695 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : filtered_lights: '['light.lightlivingroomwall3_light']'
2023-08-08 17:15:42.695 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall3_light' with transition 1.0 and context.id=01H7AYXHK7:al:JRUX:lght:44
2023-08-08 17:15:42.695 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.696 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall3_light
2023-08-08 17:15:42.696 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall3_light with service data {'entity_id': 'light.lightlivingroomwall3_light', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:42.696 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall3_light', context=<homeassistant.core.Context object at 0x7f30fd6d8180>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30ffce3240>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:42.697 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.697 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightlivingroomwall2_light_2' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightlivingroomwall2_light_2'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:42.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXHKA:al:JRUX:lght:45' lights: '['light.lightlivingroomwall2_light_2']', transition: '1.0', force: 'True'
2023-08-08 17:15:42.698 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : filtered_lights: '['light.lightlivingroomwall2_light_2']'
2023-08-08 17:15:42.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall2_light_2' with transition 1.0 and context.id=01H7AYXHKA:al:JRUX:lght:45
2023-08-08 17:15:42.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall2_light_2
2023-08-08 17:15:42.699 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall2_light_2 with service data {'entity_id': 'light.lightlivingroomwall2_light_2', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:42.699 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall2_light_2', context=<homeassistant.core.Context object at 0x7f30ffd3a5c0>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668e40>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall1_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.1 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightlivingroomwall1_light' with context.id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightlivingroomwall1_light'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXHKC:al:JRUX:lght:46' lights: '['light.lightlivingroomwall1_light']', transition: '1.0', force: 'True'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : filtered_lights: '['light.lightlivingroomwall1_light']'
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall1_light' with transition 1.0 and context.id=01H7AYXHKC:al:JRUX:lght:46
2023-08-08 17:15:42.700 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHC6TQ3R5HCHNFVE7FMY'
2023-08-08 17:15:42.701 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall1_light
2023-08-08 17:15:42.701 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall1_light with service data {'entity_id': 'light.lightlivingroomwall1_light', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:42.701 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall1_light', context=<homeassistant.core.Context object at 0x7f3112ee0c70>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669840>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:42.701 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall3_light', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXHK7:al:JRUX:lght:44'
2023-08-08 17:15:42.703 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall2_light_2', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXHKA:al:JRUX:lght:45'
2023-08-08 17:15:42.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall1_light', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXHKC:al:JRUX:lght:46'
2023-08-08 17:15:42.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall3_light']')' event with context.id='01H7AYXHK7:al:JRUX:lght:44'
2023-08-08 17:15:42.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall2_light_2']')' event with context.id='01H7AYXHKA:al:JRUX:lght:45'
2023-08-08 17:15:42.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall1_light']')' event with context.id='01H7AYXHKC:al:JRUX:lght:46'
2023-08-08 17:15:42.900 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.dining_room_lights to ['light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']
2023-08-08 17:15:42.901 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']')' event with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.121 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall4_light_2', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXHGK:al:JRUX:lght:43'
2023-08-08 17:15:43.122 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall4_light_2']')' event with context.id='01H7AYXHGK:al:JRUX:lght:43'
2023-08-08 17:15:43.129 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.129 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:43.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJ0T:al:IRUW:lght:43' lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light']', transition: '1.0', force: 'True'
2023-08-08 17:15:43.130 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : filtered_lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light']'
2023-08-08 17:15:43.131 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' with transition 1.0 and context.id=01H7AYXJ0T:al:IRUW:lght:43
2023-08-08 17:15:43.131 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.131 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light
2023-08-08 17:15:43.131 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:43.131 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light', context=<homeassistant.core.Context object at 0x7f30fd6da070>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668640>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:43.134 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJ0T:al:IRUW:lght:43'
2023-08-08 17:15:43.135 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light']')' event with context.id='01H7AYXJ0T:al:IRUW:lght:43'
2023-08-08 17:15:43.202 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall3_light', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXHK7:al:JRUX:lght:44'
2023-08-08 17:15:43.203 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall3_light']')' event with context.id='01H7AYXHK7:al:JRUX:lght:44'
2023-08-08 17:15:43.206 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall2_light_2', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXHKA:al:JRUX:lght:45'
2023-08-08 17:15:43.206 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall1_light', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXHKC:al:JRUX:lght:46'
2023-08-08 17:15:43.207 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall2_light_2']')' event with context.id='01H7AYXHKA:al:JRUX:lght:45'
2023-08-08 17:15:43.210 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall1_light']')' event with context.id='01H7AYXHKC:al:JRUX:lght:46'
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.239 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJ47:al:IRUW:lght:44' lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2']', transition: '1.0', force: 'True'
2023-08-08 17:15:43.240 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : filtered_lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2']'
2023-08-08 17:15:43.240 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' with transition 1.0 and context.id=01H7AYXJ47:al:IRUW:lght:44
2023-08-08 17:15:43.240 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.241 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:43.241 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2 with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:43.241 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', context=<homeassistant.core.Context object at 0x7f30fd6db650>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668d40>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:43.244 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJ47:al:IRUW:lght:44'
2023-08-08 17:15:43.244 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2']')' event with context.id='01H7AYXJ47:al:IRUW:lght:44'
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' with context.id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.249 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJ4H:al:IRUW:lght:45' lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']', transition: '1.0', force: 'True'
2023-08-08 17:15:43.250 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : filtered_lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']'
2023-08-08 17:15:43.250 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' with transition 1.0 and context.id=01H7AYXJ4H:al:IRUW:lght:45
2023-08-08 17:15:43.250 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXHSMD34VM54FBQZ2YP1Z'
2023-08-08 17:15:43.250 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:43.251 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3 with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:43.251 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', context=<homeassistant.core.Context object at 0x7f30fd6dbe70>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668540>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:43.253 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJ4H:al:IRUW:lght:45'
2023-08-08 17:15:43.255 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']')' event with context.id='01H7AYXJ4H:al:IRUW:lght:45'
2023-08-08 17:15:43.360 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.kitchen_lights to ['light.lightkitchenceiling1_light_4', 'light.lightkitchenceiling2_light_5', 'light.lightkitchenceiling3_light_6', 'light.lightkitchenceiling4_light_4']
2023-08-08 17:15:43.361 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling1_light_4', 'light.lightkitchenceiling2_light_5', 'light.lightkitchenceiling3_light_6', 'light.lightkitchenceiling4_light_4']')' event with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.636 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJ0T:al:IRUW:lght:43'
2023-08-08 17:15:43.639 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light']')' event with context.id='01H7AYXJ0T:al:IRUW:lght:43'
2023-08-08 17:15:43.745 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJ47:al:IRUW:lght:44'
2023-08-08 17:15:43.746 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2']')' event with context.id='01H7AYXJ47:al:IRUW:lght:44'
2023-08-08 17:15:43.754 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJ4H:al:IRUW:lght:45'
2023-08-08 17:15:43.754 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']')' event with context.id='01H7AYXJ4H:al:IRUW:lght:45'
2023-08-08 17:15:43.920 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling3_light_6' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.920 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightkitchenceiling3_light_6' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.920 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.920 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightkitchenceiling3_light_6'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:43.921 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.921 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJSH:al:JNUX:lght:43' lights: '['light.lightkitchenceiling3_light_6']', transition: '1.0', force: 'True'
2023-08-08 17:15:43.921 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : filtered_lights: '['light.lightkitchenceiling3_light_6']'
2023-08-08 17:15:43.921 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling3_light_6' with transition 1.0 and context.id=01H7AYXJSH:al:JNUX:lght:43
2023-08-08 17:15:43.921 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.922 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling3_light_6
2023-08-08 17:15:43.922 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling3_light_6 with service data {'entity_id': 'light.lightkitchenceiling3_light_6', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:43.922 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling3_light_6', context=<homeassistant.core.Context object at 0x7f30fd6e50d0>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668e40>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:43.925 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling4_light_4' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.925 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightkitchenceiling4_light_4' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.925 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.925 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightkitchenceiling4_light_4'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:43.926 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.926 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJSP:al:JNUX:lght:44' lights: '['light.lightkitchenceiling4_light_4']', transition: '1.0', force: 'True'
2023-08-08 17:15:43.926 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : filtered_lights: '['light.lightkitchenceiling4_light_4']'
2023-08-08 17:15:43.926 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling4_light_4' with transition 1.0 and context.id=01H7AYXJSP:al:JNUX:lght:44
2023-08-08 17:15:43.927 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:43.927 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling4_light_4
2023-08-08 17:15:43.927 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling4_light_4 with service data {'entity_id': 'light.lightkitchenceiling4_light_4', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:43.927 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling4_light_4', context=<homeassistant.core.Context object at 0x7f30fd6d8680>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669540>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:43.927 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling3_light_6', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJSH:al:JNUX:lght:43'
2023-08-08 17:15:43.928 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling4_light_4', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJSP:al:JNUX:lght:44'
2023-08-08 17:15:43.929 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling3_light_6']')' event with context.id='01H7AYXJSH:al:JNUX:lght:43'
2023-08-08 17:15:43.929 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling4_light_4']')' event with context.id='01H7AYXJSP:al:JNUX:lght:44'
2023-08-08 17:15:44.064 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHGK:al:JRUX:lght:43'
2023-08-08 17:15:44.064 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall4_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.4 Light, supported_features=40 @ 2023-08-08T17:15:42.609176+01:00>' found for light.lightlivingroomwall4_light_2
2023-08-08 17:15:44.066 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightlivingroomwall4_light_2
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling1_light_4' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.1 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightkitchenceiling1_light_4' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightkitchenceiling1_light_4'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.069 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJY5:al:JNUX:lght:45' lights: '['light.lightkitchenceiling1_light_4']', transition: '1.0', force: 'True'
2023-08-08 17:15:44.070 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : filtered_lights: '['light.lightkitchenceiling1_light_4']'
2023-08-08 17:15:44.070 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling1_light_4' with transition 1.0 and context.id=01H7AYXJY5:al:JNUX:lght:45
2023-08-08 17:15:44.070 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling1_light_4
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling1_light_4 with service data {'entity_id': 'light.lightkitchenceiling1_light_4', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling1_light_4', context=<homeassistant.core.Context object at 0x7f30fd6d9800>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668740>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling2_light_5' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.lightkitchenceiling2_light_5' with context.id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] just_turned_off: No 'on' → 'off' state change has been registered before for 'light.lightkitchenceiling2_light_5'. It's possible that the light was already on when Home Assistant was turned on.
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXJY7:al:JNUX:lght:46' lights: '['light.lightkitchenceiling2_light_5']', transition: '1.0', force: 'True'
2023-08-08 17:15:44.072 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : filtered_lights: '['light.lightkitchenceiling2_light_5']'
2023-08-08 17:15:44.072 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling2_light_5' with transition 1.0 and context.id=01H7AYXJY7:al:JNUX:lght:46
2023-08-08 17:15:44.072 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXJ80R2HHN6H79YEEQPM3'
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling2_light_5
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling2_light_5 with service data {'entity_id': 'light.lightkitchenceiling2_light_5', 'transition': 1.0, 'brightness': 255, 'color_temp_kelvin': 3790}
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling2_light_5', context=<homeassistant.core.Context object at 0x7f30fd6d9350>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669440>, force=True, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHK7:al:JRUX:lght:44'
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall3_light=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.3 Light, supported_features=40 @ 2023-08-08T17:15:42.692784+01:00>' found for light.lightlivingroomwall3_light
2023-08-08 17:15:44.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightlivingroomwall3_light
2023-08-08 17:15:44.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling1_light_4', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJY5:al:JNUX:lght:45'
2023-08-08 17:15:44.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling2_light_5', 'brightness': 255, 'transition': 0.5} with context.id='01H7AYXJY7:al:JNUX:lght:46'
2023-08-08 17:15:44.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling1_light_4']')' event with context.id='01H7AYXJY5:al:JNUX:lght:45'
2023-08-08 17:15:44.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling2_light_5']')' event with context.id='01H7AYXJY7:al:JNUX:lght:46'
2023-08-08 17:15:44.120 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall1_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.1 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHKC:al:JRUX:lght:46'
2023-08-08 17:15:44.120 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall1_light=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.1 Light, supported_features=40 @ 2023-08-08T17:15:42.694100+01:00>' found for light.lightlivingroomwall1_light
2023-08-08 17:15:44.120 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightlivingroomwall1_light
2023-08-08 17:15:44.167 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXHKA:al:JRUX:lght:45'
2023-08-08 17:15:44.168 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall2_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.2 Light, supported_features=40 @ 2023-08-08T17:15:42.693812+01:00>' found for light.lightlivingroomwall2_light_2
2023-08-08 17:15:44.168 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightlivingroomwall2_light_2
2023-08-08 17:15:44.428 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling3_light_6', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJSH:al:JNUX:lght:43'
2023-08-08 17:15:44.431 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling3_light_6']')' event with context.id='01H7AYXJSH:al:JNUX:lght:43'
2023-08-08 17:15:44.434 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling4_light_4', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJSP:al:JNUX:lght:44'
2023-08-08 17:15:44.436 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling4_light_4']')' event with context.id='01H7AYXJSP:al:JNUX:lght:44'
2023-08-08 17:15:44.576 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightlivingroomwall4_light_2
2023-08-08 17:15:44.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling1_light_4', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJY5:al:JNUX:lght:45'
2023-08-08 17:15:44.578 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling2_light_5', 'color_temp_kelvin': 3790, 'transition': 0.5} with context.id='01H7AYXJY7:al:JNUX:lght:46'
2023-08-08 17:15:44.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightlivingroomwall3_light
2023-08-08 17:15:44.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling1_light_4']')' event with context.id='01H7AYXJY5:al:JNUX:lght:45'
2023-08-08 17:15:44.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling2_light_5']')' event with context.id='01H7AYXJY7:al:JNUX:lght:46'
2023-08-08 17:15:44.624 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightlivingroomwall1_light
2023-08-08 17:15:44.674 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightlivingroomwall2_light_2
2023-08-08 17:15:44.781 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ0T:al:IRUW:lght:43'
2023-08-08 17:15:44.782 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.ikea_of_sweden_tradfribulbgu10ws345lm_light=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=IKEA of Sweden TRADFRIbulbGU10WS345lm Light, supported_features=40 @ 2023-08-08T17:15:43.128450+01:00>' found for light.ikea_of_sweden_tradfribulbgu10ws345lm_light
2023-08-08 17:15:44.782 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light
2023-08-08 17:15:44.886 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ4H:al:IRUW:lght:45'
2023-08-08 17:15:44.886 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=IKEA of Sweden TRADFRIbulbGU10WS345lm Light, supported_features=40 @ 2023-08-08T17:15:43.248685+01:00>' found for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:44.887 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:45.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJ47:al:IRUW:lght:44'
2023-08-08 17:15:45.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=IKEA of Sweden TRADFRIbulbGU10WS345lm Light, supported_features=40 @ 2023-08-08T17:15:43.237061+01:00>' found for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:45.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:45.289 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light
2023-08-08 17:15:45.310 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling4_light_4' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJSP:al:JNUX:lght:44'
2023-08-08 17:15:45.310 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightkitchenceiling4_light_4=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.kitchen.ceiling.4 Light, supported_features=40 @ 2023-08-08T17:15:43.919246+01:00>' found for light.lightkitchenceiling4_light_4
2023-08-08 17:15:45.312 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightkitchenceiling4_light_4
2023-08-08 17:15:45.393 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:45.395 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling3_light_6' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJSH:al:JNUX:lght:43'
2023-08-08 17:15:45.395 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightkitchenceiling3_light_6=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.kitchen.ceiling.3 Light, supported_features=40 @ 2023-08-08T17:15:43.918880+01:00>' found for light.lightkitchenceiling3_light_6
2023-08-08 17:15:45.396 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightkitchenceiling3_light_6
2023-08-08 17:15:45.402 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling1_light_4' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.1 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJY5:al:JNUX:lght:45'
2023-08-08 17:15:45.403 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightkitchenceiling1_light_4=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.kitchen.ceiling.1 Light, supported_features=40 @ 2023-08-08T17:15:44.062054+01:00>' found for light.lightkitchenceiling1_light_4
2023-08-08 17:15:45.403 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightkitchenceiling1_light_4
2023-08-08 17:15:45.552 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling2_light_5' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXJY7:al:JNUX:lght:46'
2023-08-08 17:15:45.553 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightkitchenceiling2_light_5=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.kitchen.ceiling.2 Light, supported_features=40 @ 2023-08-08T17:15:44.062318+01:00>' found for light.lightkitchenceiling2_light_5
2023-08-08 17:15:45.553 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.5 seconds for light light.lightkitchenceiling2_light_5
2023-08-08 17:15:45.581 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:45.816 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightkitchenceiling4_light_4
2023-08-08 17:15:45.901 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightkitchenceiling3_light_6
2023-08-08 17:15:45.908 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightkitchenceiling1_light_4
2023-08-08 17:15:46.059 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.lightkitchenceiling2_light_5
2023-08-08 17:15:47.786 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bedroom : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXPJA:al:IJSW:ntrv:43' lights: 'None', transition: '45.0', force: 'False'
2023-08-08 17:15:47.787 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Bedroom : filtered_lights: '[]'
2023-08-08 17:15:47.787 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXPJB:al:IRUW:ntrv:46' lights: 'None', transition: '45.0', force: 'False'
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : filtered_lights: '['light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']'
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' with transition 45.0 and context.id=01H7AYXPJB:al:IRUW:ntrv:46
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:47.788 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f3105a54540>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:47.789 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXPJD:al:JRUX:ntrv:47' lights: 'None', transition: '45.0', force: 'False'
2023-08-08 17:15:47.789 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : filtered_lights: '['light.lightlivingroomwall1_light', 'light.lightlivingroomwall2_light_2', 'light.lightlivingroomwall3_light', 'light.lightlivingroomwall4_light_2']'
2023-08-08 17:15:47.789 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall1_light' with transition 45.0 and context.id=01H7AYXPJD:al:JRUX:ntrv:47
2023-08-08 17:15:47.789 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:47.790 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall1_light
2023-08-08 17:15:47.790 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall1_light with service data {'entity_id': 'light.lightlivingroomwall1_light', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:47.790 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall1_light', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30ffce3a40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:47.804 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:47.805 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall1_light', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:47.810 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light']')' event with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:47.810 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall1_light']')' event with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:47.810 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : '_update_attrs_and_maybe_adapt_lights' called with context.id='01H7AYXPK2:al:JNUX:ntrv:47' lights: 'None', transition: '45.0', force: 'False'
2023-08-08 17:15:47.811 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : filtered_lights: '['light.lightkitchenceiling2_light_5', 'light.lightkitchenceiling4_light_4', 'light.lightkitchenceiling3_light_6', 'light.lightkitchenceiling1_light_4']'
2023-08-08 17:15:47.811 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling2_light_5' with transition 45.0 and context.id=01H7AYXPK2:al:JNUX:ntrv:47
2023-08-08 17:15:47.811 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:47.812 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling2_light_5
2023-08-08 17:15:47.812 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling2_light_5 with service data {'entity_id': 'light.lightkitchenceiling2_light_5', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:47.812 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling2_light_5', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668d40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:47.819 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling2_light_5', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:47.825 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling2_light_5']')' event with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:48.730 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']', transition=None)' event with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:48.730 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40528' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light'
2023-08-08 17:15:48.731 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.lightlivingroomwall1_light', 'light.lightlivingroomwall2_light_2', 'light.lightlivingroomwall3_light', 'light.lightlivingroomwall4_light_2']', transition=None)' event with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:48.731 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40529' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightlivingroomwall1_light'
2023-08-08 17:15:48.731 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.lightkitchenceiling1_light_4', 'light.lightkitchenceiling2_light_5', 'light.lightkitchenceiling3_light_6', 'light.lightkitchenceiling4_light_4']', transition=None)' event with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:48.731 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40532' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightkitchenceiling2_light_5'
2023-08-08 17:15:48.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Ongoing adaptation of light.ikea_of_sweden_tradfribulbgu10ws345lm_light cancelled, with AdaptationData: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f3105a54540>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' with transition 45.0 and context.id=01H7AYXPJB:al:IRUW:ntrv:46
2023-08-08 17:15:48.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:48.741 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:48.741 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2 with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:48.741 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f31006ff140>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Ongoing adaptation of light.lightlivingroomwall1_light cancelled, with AdaptationData: AdaptationData(entity_id='light.lightlivingroomwall1_light', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30ffce3a40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall2_light_2' with transition 45.0 and context.id=01H7AYXPJD:al:JRUX:ntrv:47
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall2_light_2
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall2_light_2 with service data {'entity_id': 'light.lightlivingroomwall2_light_2', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:48.742 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall2_light_2', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668f40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Ongoing adaptation of light.lightkitchenceiling2_light_5 cancelled, with AdaptationData: AdaptationData(entity_id='light.lightkitchenceiling2_light_5', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668d40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling4_light_4' with transition 45.0 and context.id=01H7AYXPK2:al:JNUX:ntrv:47
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling4_light_4
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling4_light_4 with service data {'entity_id': 'light.lightkitchenceiling4_light_4', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:48.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling4_light_4', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd66a940>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.744 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.744 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall2_light_2', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:48.744 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightkitchenceiling4_light_4', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:48.745 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2']')' event with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.745 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall2_light_2']')' event with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:48.745 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightkitchenceiling4_light_4']')' event with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:48.822 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light' with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:48.933 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40613' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2'
2023-08-08 17:15:48.933 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.934 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Ongoing adaptation of light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2 cancelled, with AdaptationData: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f31006ff140>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.935 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' with transition 45.0 and context.id=01H7AYXPJB:al:IRUW:ntrv:46
2023-08-08 17:15:48.935 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:48.935 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Setting color_temp of light light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:48.935 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3 with service data {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:48.935 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd66aa40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:48.936 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.936 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3']')' event with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.974 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40631' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3'
2023-08-08 17:15:48.974 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:48.977 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Dining Room : Ongoing adaptation of light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3 cancelled, with AdaptationData: AdaptationData(entity_id='light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3', context=<homeassistant.core.Context object at 0x7f30ffd46110>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd66aa40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.023 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightlivingroomwall1_light' with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:49.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40614' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightlivingroomwall2_light_2'
2023-08-08 17:15:49.077 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightlivingroomwall2_light_2' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Ongoing adaptation of light.lightlivingroomwall2_light_2 cancelled, with AdaptationData: AdaptationData(entity_id='light.lightlivingroomwall2_light_2', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668f40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall3_light' with transition 45.0 and context.id=01H7AYXPJD:al:JRUX:ntrv:47
2023-08-08 17:15:49.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:49.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall3_light
2023-08-08 17:15:49.080 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall3_light with service data {'entity_id': 'light.lightlivingroomwall3_light', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:49.080 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall3_light', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669840>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall3_light', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall3_light']')' event with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40648' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightlivingroomwall3_light'
2023-08-08 17:15:49.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightlivingroomwall3_light' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Ongoing adaptation of light.lightlivingroomwall3_light cancelled, with AdaptationData: AdaptationData(entity_id='light.lightlivingroomwall3_light', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669840>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightlivingroomwall4_light_2' with transition 45.0 and context.id=01H7AYXPJD:al:JRUX:ntrv:47
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Setting color_temp of light light.lightlivingroomwall4_light_2
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightlivingroomwall4_light_2 with service data {'entity_id': 'light.lightlivingroomwall4_light_2', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:49.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightlivingroomwall4_light_2', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669c40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lightlivingroomwall4_light_2', 'brightness': 255, 'transition': 22.5} with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.091 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lightlivingroomwall4_light_2']')' event with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.154 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40652' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightlivingroomwall4_light_2'
2023-08-08 17:15:49.154 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightlivingroomwall4_light_2' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:49.156 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living Room : Ongoing adaptation of light.lightlivingroomwall4_light_2 cancelled, with AdaptationData: AdaptationData(entity_id='light.lightlivingroomwall4_light_2', context=<homeassistant.core.Context object at 0x7f30fd79da80>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd669c40>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.236 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightkitchenceiling1_light_4' with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:49.318 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightkitchenceiling2_light_5' with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:49.410 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightkitchenceiling3_light_6' with context.id='01H7AYXQFCPVSXSP9BD0EAEFE5'
2023-08-08 17:15:49.512 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-40615' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1305> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.lightkitchenceiling4_light_4'
2023-08-08 17:15:49.513 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'on' → 'off' event for 'light.lightkitchenceiling4_light_4' with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Ongoing adaptation of light.lightkitchenceiling4_light_4 cancelled, with AdaptationData: AdaptationData(entity_id='light.lightkitchenceiling4_light_4', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd66a940>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling3_light_6' with transition 45.0 and context.id=01H7AYXPK2:al:JNUX:ntrv:47
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling3_light_6
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling3_light_6 with service data {'entity_id': 'light.lightkitchenceiling3_light_6', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:49.515 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling3_light_6', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd66b040>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.516 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:49.516 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Skipping adaptation of light.lightkitchenceiling3_light_6 because it is now off
2023-08-08 17:15:49.516 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.lightkitchenceiling1_light_4' with transition 45.0 and context.id=01H7AYXPK2:al:JNUX:ntrv:47
2023-08-08 17:15:49.516 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='None'
2023-08-08 17:15:49.517 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Setting color_temp of light light.lightkitchenceiling1_light_4
2023-08-08 17:15:49.517 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.lightkitchenceiling1_light_4 with service data {'entity_id': 'light.lightkitchenceiling1_light_4', 'transition': 45.0, 'brightness': 255, 'color_temp_kelvin': 3780}
2023-08-08 17:15:49.517 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.lightkitchenceiling1_light_4', context=<homeassistant.core.Context object at 0x7f30fd6dade0>, sleep_time=22.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f30fd668840>, force=False, max_length=2, which='both', initial_sleep=False)
2023-08-08 17:15:49.517 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='False', context_id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:49.517 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Kitchen : Skipping adaptation of light.lightkitchenceiling1_light_4 because it is now off
2023-08-08 17:15:50.010 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:50.010 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=IKEA of Sweden TRADFRIbulbGU10WS345lm Light, supported_features=40 @ 2023-08-08T17:15:50.009785+01:00>' found for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2
2023-08-08 17:15:50.012 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2'
2023-08-08 17:15:50.194 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:50.194 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=IKEA of Sweden TRADFRIbulbGU10WS345lm Light, supported_features=40 @ 2023-08-08T17:15:50.193494+01:00>' found for light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3
2023-08-08 17:15:50.196 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_3'
2023-08-08 17:15:50.236 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightkitchenceiling4_light_4' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.kitchen.ceiling.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPK2:al:JNUX:ntrv:47'
2023-08-08 17:15:50.236 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightkitchenceiling4_light_4=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.kitchen.ceiling.4 Light, supported_features=40 @ 2023-08-08T17:15:50.235221+01:00>' found for light.lightkitchenceiling4_light_4
2023-08-08 17:15:50.238 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.lightkitchenceiling4_light_4'
2023-08-08 17:15:50.261 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:50.261 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall2_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.2 Light, supported_features=40 @ 2023-08-08T17:15:50.259863+01:00>' found for light.lightlivingroomwall2_light_2
2023-08-08 17:15:50.265 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.lightlivingroomwall2_light_2'
2023-08-08 17:15:50.444 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:50.445 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall3_light=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.3 Light, supported_features=40 @ 2023-08-08T17:15:50.444091+01:00>' found for light.lightlivingroomwall3_light
2023-08-08 17:15:50.448 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.lightlivingroomwall3_light'
2023-08-08 17:15:50.534 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 1, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:50.534 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall2_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:50.610 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:50.610 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.lightlivingroomwall4_light_2=on; min_color_temp_kelvin=2202, max_color_temp_kelvin=4000, min_mireds=250, max_mireds=454, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>], color_mode=color_temp, brightness=254, color_temp_kelvin=3802, color_temp=263, hs_color=(26.923, 38.579), rgb_color=(255, 200, 156), xy_color=(0.433, 0.368), off_with_transition=False, off_brightness=None, friendly_name=Light.livingroom.wall.4 Light, supported_features=40 @ 2023-08-08T17:15:50.609687+01:00>' found for light.lightlivingroomwall4_light_2
2023-08-08 17:15:50.612 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 2354, in state_changed_event_listener
    self.start_transition_timer(entity_id)
  File "/config/custom_components/adaptive_lighting/switch.py", line 2095, in start_transition_timer
    last_service_data = self.last_service_data[light]
                        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'light.lightlivingroomwall4_light_2'
2023-08-08 17:15:50.760 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 1, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:50.760 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall4_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:51.595 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 16, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:51.596 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall2_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:51.685 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 13, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:51.685 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJB:al:IRUW:ntrv:46) adding this state also
2023-08-08 17:15:51.905 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 16, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:51.905 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall4_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:51.971 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:51.971 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall4_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:52.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 24, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:52.087 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJB:al:IRUW:ntrv:46) adding this state also
2023-08-08 17:15:52.162 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 16, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:52.162 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall3_light' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:52.436 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 28, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:52.436 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall2_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:52.638 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 28, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:52.639 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall3_light' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:52.704 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 28, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:52.705 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall4_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:53.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 35, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJB:al:IRUW:ntrv:46'
2023-08-08 17:15:53.078 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJB:al:IRUW:ntrv:46) adding this state also
2023-08-08 17:15:53.417 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 39, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:53.417 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall2_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:53.642 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 39, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:53.642 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall3_light' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:53.716 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 39, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXPJD:al:JRUX:ntrv:47'
2023-08-08 17:15:53.717 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: State change event of 'light.lightlivingroomwall4_light_2' is already in 'self.our_last_state_on_change' (01H7AYXPJD:al:JRUX:ntrv:47) adding this state also
2023-08-08 17:15:54.057 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 47, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXWP9J897FTF6MFD5H59A'
2023-08-08 17:15:54.434 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 50, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXX21N0C3FGBX4W88HFWJ'
2023-08-08 17:15:54.659 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 50, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXX93RWM64V3BA9476F85'
2023-08-08 17:15:54.793 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 50, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXXD85CAK89H3AGV6NP86'
2023-08-08 17:15:55.060 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 58, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXXNKV9ZXPDJXM34VWC04'
2023-08-08 17:15:55.416 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 61, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXY0Q61310ATWVZS5K24E'
2023-08-08 17:15:55.642 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 61, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXY7TB325M1QWNQ14ZSJH'
2023-08-08 17:15:55.780 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 61, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXYC312BFC2VHEB255JAX'
2023-08-08 17:15:56.070 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 69, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXYN502Y0H1JSHJK8WTZQ'
2023-08-08 17:15:56.418 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 73, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXZ014G15SF75C33JHTPF'
2023-08-08 17:15:56.636 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 73, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXZ6VSRZ76CH9ZDTRZHY0'
2023-08-08 17:15:56.733 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 73, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXZ9W3PJ9HG5273MNAANJ'
2023-08-08 17:15:57.065 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 81, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXZM88MMG0RGK3K5JP2MB'
2023-08-08 17:15:57.428 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 84, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYXZZKGTYZAT7KDNG1D64C'
2023-08-08 17:15:57.631 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 84, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY05Z0CBW8Y9JDBWW4APF'
2023-08-08 17:15:57.734 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 84, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY096HE4RKJPJ7EVPDYAJ'
2023-08-08 17:15:58.066 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 92, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY0KHSFC4K74G3DGEJDCS'
2023-08-08 17:15:58.431 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 95, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY0YZQCANTQXAR1NHRS3J'
2023-08-08 17:15:58.647 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 95, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY15QPSM6QE34ZRYFDY2Q'
2023-08-08 17:15:58.732 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 95, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY18B77C1JTS91D663QCW'
2023-08-08 17:15:59.070 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 103, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY1JX564FVC282ZTFDD13'
2023-08-08 17:15:59.424 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 106, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY1XZMTJ8T3ZB8XJ769XC'
2023-08-08 17:15:59.634 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 106, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY24HT8X72NSN0ATYAQ5T'
2023-08-08 17:15:59.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 106, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY27W8RGZNXATZPJPZWD7'
2023-08-08 17:16:00.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 114, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY2JAHXD53317PNCBXNRD'
2023-08-08 17:16:00.430 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 118, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY2XD692QMFJMZ5R92CT7'
2023-08-08 17:16:00.630 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 118, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY33N1DNA45GWV42V70Q7'
2023-08-08 17:16:00.735 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 118, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY36YK39XRQKX482S4MZC'
2023-08-08 17:16:01.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 126, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY3HHYJ6H2XYS0HH9ESWS'
2023-08-08 17:16:01.429 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 129, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY3WMFTJZECKWRTMASZ89'
2023-08-08 17:16:01.638 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 129, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY436ER5NQJZPN7Q3PDQR'
2023-08-08 17:16:01.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 129, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY46B6YBXG1K9ZSRYDVRT'
2023-08-08 17:16:02.071 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 137, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY4GPGY084SBMBC953B7B'
2023-08-08 17:16:02.426 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 140, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY4VT9W0F1F0G7DVZFQ45'
2023-08-08 17:16:02.629 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 140, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY524PQCPDWEG2WNC5D3D'
2023-08-08 17:16:02.750 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 140, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY55YF9PR7MN34K0NQQMQ'
2023-08-08 17:16:03.073 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 148, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY5G1SQMHFTEXJKWCJ9NA'
2023-08-08 17:16:03.485 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 151, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY5WWHFGAMWQ5NB47YYBD'
2023-08-08 17:16:03.638 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 152, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY61P4DTFRK0ZMVBY7V0H'
2023-08-08 17:16:03.736 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 151, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY64Q30GC8BT428K011NE'
2023-08-08 17:16:04.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 160, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY6FAB3EXVYMGVH6AV7V9'
2023-08-08 17:16:04.439 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 163, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY6TPGRAN0CTN4NMAK9QW'
2023-08-08 17:16:04.631 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 163, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY70P3KEW5RQVJ5KM0YE7'
2023-08-08 17:16:04.739 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 163, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY742J7N9FMXKK974Q5BM'
2023-08-08 17:16:05.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 171, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY7EPE88RW2R75G8K1RKC'
2023-08-08 17:16:05.439 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 174, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY7SYA0RZ4K02H36BAYFP'
2023-08-08 17:16:05.634 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 174, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY801MEE2Q95M1YE2NVNE'
2023-08-08 17:16:05.740 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 174, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY83BP36SC70TV5E5QWAM'
2023-08-08 17:16:06.074 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 182, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY8DSG5W97XTWWG1MF1M3'
2023-08-08 17:16:06.430 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 185, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY8RXN3CPHNYJ67KMHTKK'
2023-08-08 17:16:06.639 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 185, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY8ZEF5P010F3WNHTYF67'
2023-08-08 17:16:06.743 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 185, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY92PJWYT5CV636Y2DAEF'
2023-08-08 17:16:07.076 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 193, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY9D35GRR9ABAEMQED9Y5'
2023-08-08 17:16:07.428 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 197, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY9R3G8VWRP860T87PN8J'
2023-08-08 17:16:07.632 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 197, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYY9YFDNX6JGT42V6MVVRP'
2023-08-08 17:16:07.737 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 197, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYA1RKR87GFPWH47RZHMJ'
2023-08-08 17:16:08.075 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 205, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYACBZMVHV47F0T5TCPXH'
2023-08-08 17:16:08.433 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 208, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYAQG1307EXNZ46WA7KJ2'
2023-08-08 17:16:08.628 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 208, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYAXMX8DY5E0RGT7YHDJA'
2023-08-08 17:16:08.761 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 208, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYB1RAV3GPMPSFSTRJS9E'
2023-08-08 17:16:09.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 216, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYBBS4VSJ428E1AYAVTXK'
2023-08-08 17:16:09.429 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 219, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYBPMS74YY2AAESQG2TMQ'
2023-08-08 17:16:09.639 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 219, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYBX6Q3Z4KK21RKCYXJNJ'
2023-08-08 17:16:09.745 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 219, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYC0GPKS8NP4KHK8EXNEH'
2023-08-08 17:16:10.082 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 227, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYCB151AN8XM55XX9MVVB'
2023-08-08 17:16:10.431 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 230, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYCNYQBJVP2G0W5VYZF77'
2023-08-08 17:16:10.632 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 230, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYCW79NBKV7YKHH7SM7VM'
2023-08-08 17:16:10.738 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 230, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYCZJBV2W0WNQWRX484ZE'
2023-08-08 17:16:11.079 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 238, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYDA61WRFGZ723CE0B6G7'
2023-08-08 17:16:11.439 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 242, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYDNEC82F5W5PMWHKHE6C'
2023-08-08 17:16:11.636 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 242, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYDVKQ67S3DMXRE2NA9NH'
2023-08-08 17:16:11.758 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 242, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYDZCMK30JGRZY4G4BMRD'
2023-08-08 17:16:12.086 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 250, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYE9N4PAJ588DA2KR46JR'
2023-08-08 17:16:12.440 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 253, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYEMQ4HCSAHEE785PVQ6P'
2023-08-08 17:16:12.634 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall3_light' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 253, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.3 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYETSVT2CTDHJKV0Q3E33'
2023-08-08 17:16:12.741 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall4_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 253, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.4 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYEY4T8AWF88RCHNPCF9G'
2023-08-08 17:16:13.081 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.ikea_of_sweden_tradfribulbgu10ws345lm_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'IKEA of Sweden TRADFRIbulbGU10WS345lm Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYF8RD7HC1WZWCJ5Z2GRB'
2023-08-08 17:16:27.509 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lightlivingroomwall2_light_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'supported_color_modes': [<ColorMode.COLOR_TEMP: 'color_temp'>], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 254, 'color_temp_kelvin': 3802, 'color_temp': 263, 'hs_color': (26.923, 38.579), 'rgb_color': (255, 200, 156), 'xy_color': (0.433, 0.368), 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Light.livingroom.wall.2 Light', 'supported_features': <LightEntityFeature.FLASH|TRANSITION: 40>}' with context.id='01H7AYYXBMRYBGZBD5DYBHJ2R1'

@basnijholt
Copy link
Owner

Thanks @robmarshall2! I have opened #726 to keep track of it.

I am not reopening this issue because it has a different cause. Your problem is that lights immediately turn on after turning off (or not turn off at all). And this issue has been about lights turning on at random moments.

@basnijholt
Copy link
Owner

🎉

I have fixed that problem too of lights turning on immediately after turning off (#727).

This was a rare condition that showed up when the update that happens at interval occurred at the same moment as light.turn_off was called. In that case this happens in this order:

  1. someone calls light.turn_off, but light_state=off has not been registered
  2. AL starts regular update
  3. HA registers light as off
  4. AL makes an update and sets the colors/brightness to the state it thinks it should have.

@bcutter
Copy link

bcutter commented Feb 11, 2024

Unfortunately recently (since yesterday, roughly) I experience this issue again. Light turns on, but never off.

To be precise: afaics, specifically one light turns on within 1 to 2 minutes after it has been turned off - for no obvious reason. There was a change yesterday (updated deCONZ from 2.22.2 to 2.25.3), which is next to a HA OS update the only change.

grafik

grafik

grafik

grafik

grafik

So I think it's neither really randomly nor immediately after turning it off, but within a "random timeframe within a few minutes after being turned off". Does that make sense? Not sure how to debug that behaviour...

I suspect the deCONZ (ZigBee) update as this really just started since then.
What would you recommend @basnijholt : removing that specific light from AL to sort out that way if it's AL or not?

@RubenKelevra
Copy link
Collaborator

Hey @bcutter,

this could be either a Bug in AL or a communication error in the Zigbee network.

Zigbee works like this: You send a turn-off command to Zigbee and it starts to transmit it. But in the meantime it will already report back, that the light is now off.

Once the light has received, processed and acted on this command, the light will send a status update back through the Zigbee network confirming that it's off.

If this status update is not received by the network as expected the bulb will show for a while as off, but than flip to "on" again, as the confirmation was never received that it turned off.

So HA now shows the bulb back on again, but the bulb is off.

A command to change the color temperature is not a "change color if you're on"-command, but always a "turn-on" command.

So AL sees the bulb online and will issue a color change command, which then is received by the bulb as "turn on to this color".

Easiest way (if you're using Z2M) is to turn off this short term interpolation of the status of the device by going in the settings of the light which is called "optimistic":

Screenshot_2024-02-11-03-46-50-261-edit_io homeassistant companion android

If you're using some other plugin to speak to Zigbee, there might be a similar setting.

The turn on the debug log for AL and let's see if it still appears. If so attach the debug log.

@bcutter
Copy link

bcutter commented Feb 11, 2024

Interesting, but what you described is definitely not the case...

So HA now shows the bulb back on again, but the bulb is off.

...as the light is really on, so the HA state and ZigBee state are in sync with the actual physical state of the light.

I use deCONZ, not ZHA or ZB2MQTT. As this was the only change I suspect this might have introduced this behavior. I'll

  • have a look at the deCONZ repo but
  • maybe for now test to remove that light from the AL integration just to see if it's AL related at all and if it confirms
  • then provide a debug log

But generally: what I see might really not be related to this issue, as it does not happen randomly. So depending on what I discover I tend to create a separate issue instead of hijacking this one.


Edit: @RubenKelevra I created separate #920 also containing a debug log, as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Inbox
Development

No branches or pull requests