ha-artnet-led icon indicating copy to clipboard operation
ha-artnet-led copied to clipboard

default_level causes error.

Open ropiko opened this issue 2 years ago • 3 comments

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 ?).

ropiko avatar Nov 14 '22 15:11 ropiko

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

sn00zerman avatar Aug 26 '23 13:08 sn00zerman

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.

Breina avatar Aug 27 '23 08:08 Breina

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.

sn00zerman avatar Aug 27 '23 08:08 sn00zerman