Breina / 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
128 stars 11 forks source link

ha-artnet-led not sending any packets... #73

Open micah-quinn opened 3 days ago

micah-quinn commented 3 days ago

Hello all,

I have a supervised version of HA (2024.11.3/2024.11.4/20241106.2) running on a raspberry pi 3. I've installed ha-artnet-led (v0.1.21) via HACS and I have the following very simple configuration:

light:
- platform: artnet_led
  host: 10.0.0.66                              # IP of Art-Net Node
  max_fps: 40                           # Max 40 per second
  refresh_every: 0                      # Resend values if no fades are running every x seconds, 0 disables automatic refresh
  node_type: artnet-direct              # Which protocol to use
  universes:                            # Support for multiple universes
    0:                                  # Nr of Universe (see configuration of your Art-Net Node)
      send_partial_universe: True       # Only send the universe which contains data
      output_correction: quadratic      # optional: output correction for the whole universe, will be used as default if nothing is set for the channel
      devices:
        # Dimmer
        - channel: 1                    # first channel of dmx dimmer
          name: switch_1                # name
          type: dimmer                  # type
          transition: 1                 # default duration of fades in sec. Will be overridden by Transition sent from HA
          output_correction: quadratic  # optional: quadratic, cubic or quadruple. Apply different dimming curves to the output. Default is None which means linear dimming
          channel_size: 16bit           # width of the channel sent to DMX device, default "8bit", "16bit", "24bit" and "32bit" available.

In HA, I see one entity named "switch_1" associated with artnet and I'm able to toggle/dim the switch in the web UI. However, I never see any packets destined for 10.0.0.66. I've used tcpdump to watch the traffic both in the HA container and natively on the raspberry Pi; nothing.

I'm new to artnet, so perhaps I'm confused but I would expect UDP packets on port 6454 to be sent when I toggle the switch. Is there something obvious I'm doing wrong?

jwacalex commented 13 hours ago

I would try an ArtNet Analzyer like DMX Workshop or dmXLAX. Also, how do you capture the packets?

micah-quinn commented 12 hours ago

To be clear, I'm talking about network packets that should flow from ha-artnet-led to the artnet node hosted by OLAD. OLAD is connected to a USB (FTDI) DMX512. As I mentioned, I'm using tcpdump.

In the meantime, I've taken a different approach and integrated with OLAD's HTTP API on 9090. It seems to work well and is one less protocol to worry about.