corb3000 / ha-artnet-led

DMX lighting Integration for Home Assistant. Using the HA Color Mode update and Pyartnet library to control lights in multiple DMX universes over ethernet with the Art-Net protocol.
MIT License
24 stars 17 forks source link

default_level causes error. #11

Open ropiko opened 1 year ago

ropiko commented 1 year ago

If i try to add the lines from the example code:

   - channel: 50
     name: sp4led_1_dimmer
     default_level: 255
     type: fixed

I get the following message when i try to restart HASS: The system cannot restart because the configuration is not valid: Invalid config for [light.artnet_led]: [default_level] is an invalid option for [light.artnet_led]. Check: light.artnet_led->universes->0->devices->2->default_level. (See ?, line ?).

sn00zerman commented 10 months ago

Any solution or work-around for this ? If have some fixtures that I can't use without setting a default value for certain channels ...

Breina commented 10 months ago

I believe the default_value was removed at some point. The solution that we did on my fork was to split the default channel up by its channels.

https://github.com/Breina/ha-artnet-led/pull/18

That's a more general solution that supports all kinds of light fixtures, not only dimmers.

sn00zerman commented 10 months ago

Thanks for your answer, I will definitely use your fork :-) It's a much more elegant solution than mine ! I did set the channels in a HA startup-script, to the necessary values, and simply did hide this entity.