MiLight WiFi Controller (iBox 2) with LED-Stripe

Hi there,

I am trying to set my LED-stripe with the MiLight adapter and the MiLight WiFi-Box. HA recognizes my stripe as it appears correctly in my groups and entities. But I cannot control the stripe (only via app).

My config:

light:
  - platform: limitlessled
    bridges:
    - host: 192.168.0.156
      version: 6
      port: 5987
      groups:
      - number: 1
        type: white
        name: Bettlicht

Might the type be wrong? I can adjust the temperature and the brightness… but I can’t modify any colors… So I guess “white” is the way to go.

In the logs aren’t any errors:

2017-10-07 19:10:52 INFO (Thread-17) [limitlessled.pipeline] Starting a new pipeline on group 1 (Bettlicht) @ 192.168.0.156
2017-10-07 19:10:52 INFO (Thread-17) [limitlessled.pipeline]  -> Running stage 'on()' on group 1 (Bettlicht) @ 192.168.0.156
2017-10-07 19:10:53 INFO (Thread-17) [limitlessled.pipeline]  -> Running stage 'transition(0, brightness=1.0, temperature=1.0)' on group 1 (Bettlicht) @ 192.168.0.156
2017-10-07 19:10:53 INFO (Thread-17) [limitlessled.pipeline] Finished pipeline on group 1 (Bettlicht) @ 192.168.0.156

But nothing happens…

Cheers and thanks.

The configuration seems to be OK.

Are you sure the IP address is correct? It’s a good idea to set a static IP address to the Box. Second thing. Have you tried using the MiLight app? Is it functioning well?

You have to set up the app separately from the remote. If your remote is working (say, on button 1 you have your bed light), that doesn’t mean your button 1 on the WiFi Bridge is connected to bed light as well.

So, my advice would be to check the IP address and then to pair the bulbs to the bridge again. Disconnect the bulb, connect it, and within the first 3 seconds click the on button in Home Assistant.

Das schaffst du.

Thanks for the hints.

The IP seems to be right. I can access the MilLght’s configuration via browser.
Also the app is working well. Everything as it should be: brightness and temperature.

Unfortunately I don’t understand your last hints. :smiley:
I have connected a LED-stripe to a MiLight-Controller. This one I paired with the MiLight Wifi-Bridge. Both are working well with the app. But the last step does nothing: My button in Home Assistant is a simple “shut-the-lights-on-and-off” switch.

34

Could you specify what I should do?

Danke.

Try using a lowercase ‘b’ for Bettlicht in the config.

No, that didn’t do anything. It just changed the name from “B…” to “b…”.

Try changing the version to 5

Unfortunately no success.

Where can I see what version would be correct?

1 Like

I’d also like to know if there’s any way to see which version is required

I have the same problem, i think the python-limitlessled does not support it. Next week i will capture some network between the app and the ibox 2. hopefully i can see some messages i can use to include in the python-limitlessled lib.

Anyone more success?

I have made support for my 1CH MiLight led dimmer, now waiting for merging into home-assistant.
More info see:
https://github.com/home-assistant/home-assistant/pull/12558

Awesome, thanks! Looking forward for your change to be integrated officially! :slight_smile:

I might test it tomorrow manually and report back. Is there any github-way to test this? Otherwise I would just edit the limitlessled.py and see what happens.

Cheers

you can simply edit the limitlessled.py file with this one and it should work. It should automatically install the latetest python-limitlessled.

Ok, I edited the limitlessled.py and get the following error:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/light/limitlessled.py", line 121, in setup_platform
    group_conf.get(CONF_TYPE, DEFAULT_LED_TYPE))
  File "/srv/homeassistant/lib/python3.6/site-packages/limitlessled/bridge.py", line 154, in add_group
    group = group_factory(self, number, name, led_type)
  File "/srv/homeassistant/lib/python3.6/site-packages/limitlessled/bridge.py", line 50, in group_factory
    return DimmerGroup(bridge, number, name)
  File "/srv/homeassistant/lib/python3.6/site-packages/limitlessled/group/dimmer.py", line 25, in __init__
    super().__init__(bridge, number, name, DIMMER)
  File "/srv/homeassistant/lib/python3.6/site-packages/limitlessled/group/__init__.py", line 57, in __init__
    self._command_set = command_set_factory(bridge, number, led_type)
  File "/srv/homeassistant/lib/python3.6/site-packages/limitlessled/group/commands/__init__.py", line 30, in command_set_factory
    raise ValueError('There is no command set for '
ValueError: There is no command set for specified bridge version and led type.

Any ideas? I’ll try to look into this more tomorrow.

Cheers

Hm, limitlessled seems to be the correct version.

(homeassistant) homeassistant@hassbian:/home/pi $ pip show limitlessled
Name: limitlessled
Version: 1.1.0
Summary: Control LimitlessLED products.
Home-page: https://github.com/happyleavesaoc/python-limitlessled/
Author: happyleaves
Author-email: [email protected]
License: MIT
Location: /srv/homeassistant/lib/python3.6/site-packages
Requires:

Someone else seemed to have the same problem. Unfortunately there’s no trace of a solution whatsoever.

I might “upgrade” to home-assistant dev-branch later. Or do you know when or which version will contain your limitlessled.py?

Cheers

EDIT: The issue still exists in HASS v0.64.0dev0.

What is your current YAML configuration?

This is the relevant part:

light:
  - platform: limitlessled
    bridges:
    - host: 192.168.0.109
      version: 5
      port: 5987
      groups:
      - number: 1
        type: dimmer

It should be version: 6 (which is default, so you can just remove it).

Great this works, thanks!

Adjusting temperature and brightness are not though. Even not with type “white”.

Hi!

I have Mi-Light iBox2 and a Mi-Light RGBW Bulb connected to it. I can control the bulb via the app. I cannot get it to work within Home Assistant. I do not get any errors, the bulb just isnt reacting…

Config:
- platform: limitlessled
  bridges:
    - host: 192.168.1.227
      groups:
      - number: 1        
        name: milight_bulb_1
        type: rgbw

Home Assistant V 0.75.3.

Are there any known issues? How did you get it to work, @Regularj?

Did you try type: rgbww ?