Manual configuration of multiple lifx bulbs

I have multiple LIFX bulbs and since they are on a separate VLAN I cannot easily use autodiscover. I therefore specify them manually in my configuration. This works fine for one bulb but trying to add additional ones seems to break everything.

lifx:
  light:
    - port: 56700
      broadcast: 10.10.11.110

lifx:
  light:
    - port: 56701
      broadcast: 10.10.11.111

I’ve tried adding multiple light entries under the same “lifx” namespace too which didnt seem to work either.

1 Like

Your first entry is missing a colon after lifx, (very first line.)

Thanks. That was a copy/paste issue on my end. The actual configuration file includes the colon.

The web GUI also only allows there to exist a single Lifx configuration so I suspect multiple lifx entries in configuration.yaml is not possible.

I remain stuck.

What about just specifying the broadcast address of your VLAN instead of individual light ip addresses?

Doens’t seem to work. To get directed broadcasts across VLANs working I suspect I need to set up some trickery in my unifi controller. Please correct me if you believe this should work out of the box.

I’m no expert. Just going on the docs. I am planning on VLANing my lights though so am interested.

My Lifx lights are also on a separate vlan and a logical interface on PFSense router. I suspect the broadcast is having an issue because of the FW by default filtering broadcast queries across interfaces. Which I thought I had fixed installing mDNS service and enabling IGMP. but yeah… no luck yet.

Hey ardevd

I was having the same issue and this worked for me:

# Lifx
lifx:
  light:
    - broadcast: 192.168.20.195
    - broadcast: 192.168.20.196
    - broadcast: 192.168.20.197
4 Likes

I tried to use this to specify each device but it only seems to see the last device specified.

Hi dax333

Can you post your configuration?

Works for me when config yaml is configured like so. Home assistant and lifx bulbs are on different VLANs just like OP

lifx:
light:
- server: “IP of Home Assistant”
port: 56700
- broadcast: 192.168.x.x #Bulb 1 IP address
- broadcast: 192.168.x.x #Bulb 2 IP address

1 Like

sorry for the necro - tried your config but does not show up still :frowning:
I have very old bulbs - they are pre-cloud firmware, but they work with lazylights python library :slight_smile:
any idea what to do?
I really don’t want to upgrade the firmware just for this…

config I tried:

lifx:
  light:
    - server: 192.168.0.5
      port: 56700
    - broadcast: 192.168.0.22 #office
    - broadcast: 192.168.0.23 #bedroom

You need at least version 2 firmware in the LIFX bulbs, no way around that.

Then remove the YAML config and just add LIFX from the Integrations UI. Discovery should find the bulbs as it seems like you have them on the same subnet/VLAN.

thank you for the clarification, not gonna do that for now… just gonna use oldschool shell to execute my old python automations :slight_smile:

This worked for me, thanks @Badmaster

worked for me but took a few reboots and a wait overnight before they all appeared as Devices.

just in case anyone else comes here looking for a solution at a later date :slight_smile: