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

100% brightness turns off lights completely in some cases #2

Closed Breina closed 2 years ago

Breina commented 2 years ago

When putting a light on 100% brightness, the DMX channel values are set to 0.

- platform: artnet_led
  host: 192.168.1.15
  max_fps: 40
  universes:
    0:
      devices:
        - channel: 1
          name: Bureau NO
          type: dimmer
          output_correction: quadratic
          channel_size: 16bit

In this image, we can see that on the last image, the DMX channel values are set to 0 0. The expected values are 255 255.

image

corb3000 commented 2 years ago

Well spotted. I had forgotten to update the pyartnet library we should be using 0.8.3. as spacemanspiff2007 kindly fixed a bug in it. The problem only happens when output correction is something other than linear. I have committed the change should work now.

Changed the pyartnet library to 0.8.3 to solve the going to 0 problems at full brightness with quadratic