First steps in HA and Milight makes it hard for me

Hi,

today I installed HA for the first time (bloody noob). At first I want to include my two milight v4 bridges.

When I configure only one bridge, everything is fine. But when I insert the second bridge, HA gives me this:

2017-07-16 16:09:33 ERROR (MainThread) [homeassistant.config] Invalid config for [light.limitlessled]: [Name] is an invalid option for [light.limitlessled]. Check: light.limitlessled->bridges->1->groups->0->Name. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.limitlessled/

I’ve read the site for milight and can’t find my mistake. Maybe anybody else is better with this.

My configuration.yaml:

  homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 53.9251543
  longitude: 10.224474
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 30
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Berlin
  
light:
  platform: limitlessled
  bridges:
     - host: 192.168.1.27
       version: 4
       port: 8899
       groups:
       - number: 1
         type: rgbw
         name: Fensterlampe
       - number: 2
         type: rgbw
         name: Schlafzimmer
       - number: 3
         type: rgbw
         name: Kaminlampe
       - number: 4
         type: rgbw
         name: Sofalampe
         
     - host: 192.168.1.32
       version: 4
       port: 8899
       groups:
       - number: 1
         type: rgbw
         Name: Badezimmer
       - number: 2
         type: rgbw
         name: Flur
       - number: 3
         type: rgbw
         name: Oben
       - number: 4
         type: rgbw
         name: Deckenlampe


media_player:
- platform: plex
  include_non_clients: true
  use_episode_art: true
  use_dynamic_groups: true
  scan_interval: 15

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL or running in Docker etc
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

# Weather Prediction
sensor:
  platform: yr

# Text to speech
tts:
  platform: google

group: !include groups.yaml
automation: !include automations.yaml

I hope anybody else got an idea. Thx.

Let me start with everything looks good, but looks can be deceiving in YAML. Here is what I would do. Everything you have is indented by 2 spaces, except the - host lines. Those are indented by 3 from the line above them. I don’t know if that makes a difference, but it’s something. I would back those lines and the lines under each of them off by 1 space so that everything is indented by a multiple of 2 spaces. Personally I would also get rid of that blank line that has spaces in it between the two hosts. YAML may be seeing the spaces and either seeing it as some type of termination to the light section.

Hi turboc,

thx for your help. The reason why the second bridge won’t come up, was a simple “N” in Name. It was a hard lesson for a newbie, but now i’m much more motivated. Thx for your help :+1:t2:

Glad you got it. Sorry I wasn’t more help. I’ve looked at that config 3 times and I still don’t see that N you are talking about. :slight_smile: I hope it was in another file somewhere or else I’m gonna need to go back to the eye doctor for new glasses.