Multiple Flux switches possible?

I have two different types of bulbs I’d like to use with the Flux component - RGB bulbs and color temperature bulbs that use Mired units.

It seems like I should be able to create two switches with different modes, but I get an error when trying this:

- platform: flux
  switches:
    flux_ikea:
      lights:
        - light.closet_left
        - light.closet_right
      friendly_name: Flux Ikea
      start_time: '5:00'
      stop_time: '10:35'
      disable_brightness_adjust: True
      mode: mired
    flux_rgb:
      lights:
        - light.stove
        - light.fridge
        - light.dining_floor_lamp
        - light.floor_lamp
        - light.globes
        - light.reading_lamp
        - light.middle_pendant
        - light.office_pendant
      friendly_name: Flux RGB
      start_time: '5:00'
      stop_time: '10:35'
      disable_brightness_adjust: True
      mode: rgb

2018-06-25 11:02:51 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.flux]: [switches] is an invalid option for [switch.flux]. Check: switch.flux->switches. (See ?, line ?). Please check the docs at Flux - Home Assistant

Does the Flux component not support this, or am I going about this wrong?

  switch:
    - platform: flux
      lights:
        - light.closet_left
        - light.closet_right
      friendly_name: Flux Ikea
      start_time: '5:00'
      stop_time: '10:35'
      disable_brightness_adjust: True
      mode: mired

    - platform: flux
      lights:
        - light.stove
        - light.fridge
        - light.dining_floor_lamp
        - light.floor_lamp
        - light.globes
        - light.reading_lamp
        - light.middle_pendant
        - light.office_pendant
      friendly_name: Flux RGB
      start_time: '5:00'
      stop_time: '10:35'
      disable_brightness_adjust: True
      mode: rgb
1 Like

Thanks, had to change friendly_name to name but this worked:

- platform: flux
  lights:
    - light.stove
    - light.fridge
    - light.dining_floor_lamp
    - light.floor_lamp
    - light.globes
    - light.reading_lamp
    - light.middle_pendant
    - light.office_pendant
  name: Flux RGB
  start_time: '5:00'
  stop_time: '10:35'
  disable_brightness_adjust: True
  mode: rgb

- platform: flux
  lights:
    - light.closet_right
    - light.closet_left
  name: Flux Ikea
  start_time: '5:00'
  stop_time: '10:35'
  disable_brightness_adjust: True
  mode: mired

edit: hmm, except my RGB bulbs are reversed color from what they should be. Strange