claytonjn / hass-circadian_lighting

Circadian Lighting custom component for Home Assistant
Apache License 2.0
774 stars 89 forks source link

Value is not set by the integration #241

Closed cleveHEX closed 11 months ago

cleveHEX commented 11 months ago

I am trying to setup this, but I can't figure what do I do wrong. My configs:

circadian_lighting:

switch:
  - platform: circadian_lighting
    lights_ct:
      - light.testcam_livingroom_lights

The light.testcam_livingroom_lights is esphome device with cwww light device, has following attributes:

min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6536
min_mireds: 152
max_mireds: 500
supported_color_modes:
  - color_temp
color_mode: color_temp
brightness: 255
color_temp_kelvin: 5459
color_temp: 183
hs_color:
  - 27.813
  - 13.342
rgb_color:
  - 255
  - 236
  - 220
xy_color:
  - 0.356
  - 0.344
friendly_name: testcam Livingroom Lights
supported_features: 40

Log output:

2023-11-03 14:10:36.903 DEBUG (MainThread) [custom_components.circadian_lighting.switch] Lights adjusting because light.testcam_livingroom_lights changed from unavailable to on and these attributes changes: color_mode: color_temp, brightness: 102, color_temp_kelvin: 3290, color_temp: 303, hs_color: (27.408, 49.54), rgb_color: (255, 186, 128), xy_color: (0.471, 0.378).
2023-11-03 14:33:51.955 DEBUG (MainThread) [custom_components.circadian_lighting.switch] Lights adjusting because light.testcam_livingroom_lights changed from off to on and these attributes changes: color_mode: color_temp, brightness: 255, color_temp_kelvin: 2213, color_temp: 451, hs_color: (29.751, 84.058), rgb_color: (255, 146, 40), xy_color: (0.579, 0.387).
2023-11-03 14:33:53.178 DEBUG (MainThread) [custom_components.circadian_lighting.switch] Lights adjusting because light.testcam_livingroom_lights changed from off to on and these attributes changes: color_mode: color_temp, brightness: 255, color_temp_kelvin: 2213, color_temp: 451, hs_color: (29.751, 84.058), rgb_color: (255, 146, 40), xy_color: (0.579, 0.387).
2023-11-03 14:35:06.920 DEBUG (MainThread) [custom_components.circadian_lighting.switch] Lights adjusting because light.testcam_livingroom_lights changed from off to on and these attributes changes: color_mode: color_temp, brightness: 255, color_temp_kelvin: 2184, color_temp: 457, hs_color: (29.855, 85.373), rgb_color: (255, 145, 37), xy_color: (0.581, 0.387).
2023-11-03 14:36:29.307 DEBUG (MainThread) [custom_components.circadian_lighting.switch] Lights adjusting because light.testcam_livingroom_lights changed from off to on and these attributes changes: color_mode: color_temp, brightness: 255, color_temp_kelvin: 5459, color_temp: 183, hs_color: (27.813, 13.342), rgb_color: (255, 236, 220), xy_color: (0.356, 0.344).

The values are changed by myself as I was trying to test. Thank you for any hints.

cleveHEX commented 11 months ago

I am sorry, after I submitted the issue, I found there is a switch that is not tied to any integration, that's why I did not find it before.