Hi guys who managed to control the V6 bridge light via HA? it should work as it have been implemented with 0.39 update If you can share if you did thanks
I did, everything is working except for the bridge led. I cannot control the led of the bridge itself.
light:
- platform: limitlessled
bridges:
- host: 192.168.0.214
bridge_led: True
groups:
- number: 1
name: SmallBulb
type: rgbw
- number: 2
name: BigBulb
type: rgbw
- number: 3
name: SmallBulbBedroom
type: rgbw
same as me so I’m not alone
I saw on the limitlessled config files it should be defined this way:
groups:
- number: 1
name: Name
type: bridge-led
but it doesn’t seems to work or I’m probably wrong
You are using a development version of the file I guess, there is no more explicit BRIDGE_LED group type in the latest version:
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/light/limitlessled.py
@touliloup How can I. I’m using the official release 0.39.1 I’ve never been through a dev version.
I found it here: home assistant/.homeassistant/deps/limitlessled/group/rgbw.py
Edit: I can perfectly control my bridges I just want to control the V6 bridge led.
light:
platform: limitlessled
bridges:
- host: 192.168.1.70
bridge_led: True
version: 6
port: 5987
groups:
- number: 2 # Group number
name: Side
type: rgbww
- host: 192.168.1.32
version: 5
port: 8899
groups:
- number: 1 # Group number
name: Stand
type: rgbw
Yes V6 bridge led doesn’t seem to work with the actual hass conf. It’s a known issue, just didn’t have time to look into it.
The python library control the bridge just fine so it shouldn’t be too long before it’s fixed.
Cool would be nice to be used as a led notification ( color per type of notification) anyway thank you for your feedback
@touliloup
I’ve found the issue, I think… I’ve managed to get the bridge to work, by modifying the /limitlessled/group/rgbw.py.
I’m not sure whether the error was made here, but I was able to control the bridge by modifying line 27.
super().__init__(bridge, number, name, led_type)
into
super().__init__(bridge, number, name, 'bridge-led')
Plus I needed to use a light group rgbw to address the bridge led in the configuration.yaml. Now I can’t use rgbw bulbs, but since I only have rgbww this isn’t a problem for me.
I suspect the error is in the setting of the led_type in line 19, but I’m not sure how this assignment was made.
def __init__(self, bridge, number, name, led_type=RGBW):
It sets the led_type fixed to RGBW, which may be an error?
HASS doesn’t allow to set the bridge-led group in the configuration and in the limitlessled code I can’t find a query for the bridge-led=true setting from hass… where is this queried and set?
Here’s my fix that got it working
In components/light/limitlessled.py
Modify the LED_TYPE line
LED_TYPE = ['rgbw', 'rgbww', 'white', 'bridge-led']
In your configuration, define the bridge led as another group
light:
platform: limitlessled
bridges:
- host: xxxx
version: 6
bridge_led: true
groups:
- number: 1
name: milight_office
type: rgbww
- number: 1
name: milight_bridge
type: bridge-led
Let me know if that works for you.
That should work, it’s what I’ve used during development to use the bridge-led.
Concerning the current impl I noticed that this line:
bridge_conf.get(CONF_BRIDGE_LED)
always return None
.
I tried that with this config:
light:
- platform: limitlessled
bridges:
- host: 192.168.0.214
bridge_led: true
groups:
- number: 1
name: SmallBulb
type: rgbw
I also tried with bridge_led: false
without any success, it seems that the config is not parsed/read correctly.
Thank’s for sharing it worked for me
Want to confirm this works as well! So the code doesn’t use the bridge-led=true parameter. This is like the previous beta version where we could use bridge-led as a type. Working like a charm!
Cool. It has been merged into home-assistant, should see it in a release or two.
Code update is in 0.42. I’ll be upgrading to 0.42 shortly so I don’t have to copy the updates in anymore
Be sure to remove the old bridge_led option from your config, as it’s been removed.
Just tried 0.42.1, working fine
Awesome
In the most recent version, it just simply need a group and type defined to : bridge-led
Here is my working config with an milight ibox1:
light:
platform: limitlessled
bridges:
- host: [IP-OF-THE-BRIDGE]
version: 6
groups:
- number: 0
name: box
type: bridge-led
- number: 1
type: rgbww
name: work1
fade: on
- number: 2
type: rgbww
name: work2
fade: on
- number: 3
type: rgbww
name: work3
fade: on
- number: 4
type: rgbww
name: work4
fade: on