Hi,
I’m trying to automate color temperature but without success. I have two Yeelight Smart bulbs (tunable white, not RGB).Preformatted text
I’m getting get this in log when “mode” is set to xy or RGB:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 417, in _async_add_entity
await entity.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/flux/switch.py", line 223, in async_added_to_hass
await self.async_turn_on()
File "/usr/src/homeassistant/homeassistant/components/flux/switch.py", line 237, in async_turn_on
await self.async_flux_update()
File "/usr/src/homeassistant/homeassistant/components/flux/switch.py", line 311, in async_flux_update
self.hass, self._lights, x_val, y_val, brightness, self._transition
File "/usr/src/homeassistant/homeassistant/components/flux/switch.py", line 106, in async_set_lights_xy
await hass.services.async_call(LIGHT_DOMAIN, SERVICE_TURN_ON, service_data)
File "/usr/src/homeassistant/homeassistant/core.py", line 1201, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service light/turn_on
And this when Mode set to mired
Error when calling <function YeelightGenericLight.set_colortemp at 0xaedd3df8>: {'code': -5001, 'message': 'invalid params'}
This is my config
- platform: flux
lights:
- light.sofa_light
- light.xiaomi_philips_smart_led_ball
- light.bedroom_tunable
start_time: '7:00'
stop_time: '23:00'
start_colortemp: 5000
sunset_colortemp: 2700
stop_colortemp: 1900
disable_brightness_adjust: False
mode: mired
Maybe the Flux component broke with update? Hassio 0.104.2 on Rpi4. Thanks!