ITADN

Error in log: [custom_components.adaptive_lighting.hass_utils] Error for call ... 'color_temp': 225, 'color_temp_kelvin': 4435}}' in service_func_proxy

#1442Openbackcountrymountains 创建于 2026-03-06
kind/bugkind/featureneed/triage
# Home Assistant Adaptive Lighting Issue Template I keep getting an error in my logs relating to using both 'color_temp:' and 'color_temp_kelvin:'. I have scoured my configs to remove all references to 'color_temp:', as it is deprecated, and yet I still get the below error from adaptive lighting. It's more of an annoyance than a real problem, as it doesn't seem to effect how I'm using adaptive lighting, but it annoys me that I can't figure out how to stop the error in my logs. I do wonder if it is related to using the [gamma adjusted light wrapper](https://github.com/MarkGodwin/hacs_gamma_light) but a cursory search of that repository shows only 'color_temp_kelvin:' is being used. ## Bug Reports Logs ``` 2026-03-05 16:40:07.536 ERROR (MainThread) [custom_components.adaptive_lighting.hass_utils] Error for call '{'entity_id': ['light.stair_top_downlight_wiz', 'light.stair_bottom_downlight_wiz', 'light.stairs_magic_led_template_gamma', 'light.upstairs_hall_wiz_light_group'], 'params': {'brightness': 221, 'transition': 0.0, 'color_temp': 225, 'color_temp_kelvin': 4435}}' in service_func_proxy Traceback (most recent call last): File "/config/custom_components/adaptive_lighting/hass_utils.py", line 73, in service_func_proxy await result File "/config/custom_components/adaptive_lighting/switch.py", line 2055, in _service_interceptor_turn_on_handler await self.hass.services.async_call( ...<5 lines>... ) File "/usr/src/homeassistant/homeassistant/core.py", line 2800, in async_call processed_data: dict[str, Any] = handler.schema(service_data) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 259, in __call__ return self._exec((Schema(val) for val in self.validators), v) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 386, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 382, in _exec v = func(v) File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__ return self._compiled([], data) ~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 256, in _run return self._exec(self._compiled, value, path) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 386, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 384, in _exec v = func(path, v) File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable return schema(data) File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__ return self._compiled([], data) ~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 528, in validate_dict raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: two or more values in the same group of exclusion 'Color descriptors' @ data[<Color descriptors>] ``` 2. [Your Adaptive Lighting configuration](https://github.com/basnijholt/adaptive-lighting#gear-configuration): ``` homeassistant: customize: package.node_anchors: light_settings: &lightsettings include_config_in_attributes: true transition: 30 initial_transition: 2 interval: 300 #adapt_delay: 5 #send_split_delay: 2000 min_brightness: 10 max_brightness: 100 min_color_temp: 2700 max_color_temp: 6500 # for summer # sunrise_time: "06:00:00" # sunset_time: "21:00:00" # for winter sunrise_offset: -1200 sunset_offset: 1200 brightness_mode: tanh brightness_mode_time_dark: 1 brightness_mode_time_light: 7200 #wake_time: "06:00:00" #sleep_time: "22:00:00" take_over_control: true #separate_turn_on_commands: false adaptive_lighting: - name: Livingroom <<: *lightsettings interval: 150 lights: - light.livingroom_lamp_wiz_light_group - light.livingroom_ceiling_wiz_light_group - light.pajama_wiz_light_group - light.stairs_magic_led_template_gamma - light.upstairs_led_template_gamma ``` 3. (If using Zigbee2MQTT) nope, these are all wifi lights tuya or wiz controlled 4. Describe the bug and how to reproduce it: The error shows up in the logs during the times of day when color temperature is actively being adjusted. 5. Steps to reproduce the behavior: Have this configuration.
0 条评论