Can Flux be used to control Hue lights?

Hi All,

I have some philips Hue bulbs that I would like to automatically set to the sun’s color temperature throughout the day. I was unable to find a specific example of this within the community, but did find “flux” which provides this functionality

Can the flux switch be used to control HUE cutom kelvin white bulbs? Are there any examples of this floating around that I could piggy back?

Best,
Rob

For anyone else that finds this - turns out it was easier than I thought. Flux works natively with hue lights. You just have to use “mired” as the mode.

4 Likes

Here’s my config:

switch:
  platform: flux
  lights:
- light.hue_ambiance_lamp_1
- light.hue_ambiance_lamp_2
- light.hue_ambiance_lamp_3
  name: Fluxer
  start_time: '7:00'
  stop_time: '23:00'
  start_colortemp: 4500
  sunset_colortemp: 3000
  stop_colortemp: 2200
  disable_brightness_adjust: True
  mode: mired
2 Likes

@Robert_Linnaeus can you explan what the mired mode does instead of the default mode?

Great, thanks a lot! I have bunch of hue color bulbs and also white ambiance bulbs and for some reason flux worked only for color ones. Mired mode helped, now all of my lights are working!

I have several Hue White Ambiance lamps and I want them to go on several minutes before sunset and go off serveral minutes after sunrise. They should stay on at night as reduced ambient light and go to a high color temperature in the morning.

Is the Flux component suitable for this?

After re-reading the component’s documentation, I think disable_brightness_adjust: True could do the trick. An automation switches the lamp on before sunset and off after sunrise at a given brightness level. Another automation could take control of the brightness, while Flux takes care of the lamps’ color.