Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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.

License

NotificationsYou must be signed in to change notification settings

Breina/ha-artnet-led

 
 

Repository files navigation

hacs_badge

Home Assistant component for Art-Net LED (DMX)

Updated integration Supporting the new color mode in Home Assistant. leveraged heavily formspacemanspiff2007 andjnimmoNow supports 16 bit resolution (also supports 24 bit and 32 bit but I don't know of a DMX controller that would use it)Use Brightness and RGB value separately to give more resolution to brightness to be able to make use of 16 bit resolution

The DMX integration for Home Assistant allows you to send DMX values to anArt-Net capable DMX interface. This component is a one way integration which sendsArt-Net UDP packets to the DMX interface. This integration usespyartnet libraries and requires at least Python version 3.8.

Installation

Note

This integration requiresHACS to be installed

Warning

When migrating from jnimmo or corb3000's integration:

  1. First remove the integration
  2. Comment or remove the YAML config
  3. Restart
  4. Delete the light entities
  5. Remove all otherCustom_repositories that are also namedha-artnet-led
  6. Install this integration and re-introduce the config (also change changecustom_white tocolor_temp)
  1. Open HACS
  2. Open the options in the top right and selectCustom repositories
  3. Enter this repository's URL (https://github.com/Breina/ha-artnet-led) under the CategoryIntegration.
  4. PressAdd
  5. + EXPLORE & DOWNLOAD REPOSITORIES
  6. FindArt-net LED Lighting for DMX in this list
  7. DOWNLOAD THIS REPOSITORY WITH HACS
  8. DOWNLOAD
  9. Restart Home Assistant (Settings >System >RESTART)

Configuration

hass-dmx is a community supported Home Assistant integration, if you have any questions you can discuss with theHome Assistant DMX Community.

artnet-led lighting is configured in theconfiguration.yaml file under thelight domain.

Example:

light:-platform:artnet_ledhost:IP# IP of Art-Net Nodemax_fps:25# Max 40 per secondrefresh_every:0# Resend values if no fades are running every x seconds, 0 disables automatic refreshnode_type:artnet-direct# Which protocol to useuniverses:# Support for multiple universes0:# Nr of Universe (see configuration of your Art-Net Node)send_partial_universe:True# Only send the universe which contains dataoutput_correction:quadratic# optional: output correction for the whole universe, will be used as default if nothing is set for the channeldevices:# Dimmer        -channel:1# first channel of dmx dimmername:my_dimmer# nametype:dimmer# typetransition:1# default duration of fades in sec. Will be overridden by Transition sent from HAoutput_correction:quadratic# optional: quadratic, cubic or quadruple. Apply different dimming curves to the output. Default is None which means linear dimmingchannel_size:16bit# width of the channel sent to DMX device, default "8bit", "16bit", "24bit" and "32bit" available.        -channel:3name:my_rgb_lamptype:rgbtransition:1channel_size:16bitoutput_correction:quadraticchannel_setup:rbgw# Auto-calculated white channel        -channel:125type:color_tempname:"my_color_temp_lamp"min_temp:2500Kmax_temp:6500Kchannel_setup:ch        -channel:41type:rgbwwname:my_rgbww_lamptransition:10        -channel:50name:sp4led_1_dimmertype:fixedchannel_setup:            -255

Configuration variables

  • host (Required): Art-Net/DMX gateway address
  • port (Optional; default=6454 (Art-Net), 5568 (sACN), 6038 (KiNet)): DMX gateway port. This is directly hardcoded into the respective protocols, so don't change this if you're not very certain.
  • max-fps (Optional; default=25): frame rate for fade update (1 to 40 FPS)
  • refresh_every (Optional; default=120): Seconds to resend values if no fades are running, 0 disables.
  • node_type (Optional; default=artnet-direct): the protocol to use
    • 'artnet-direct': Directly sends DMX packets to a single node's IP.
    • 'artnet-controller': Auto-discovers ArtNet nodes and other controllers, can be picked up by other controllers. Will allow Home Assistant lights to be updated through DMX input.
    • 'sacn': The E1.31 sACN protocol, directly sending to a node's IP.
    • 'kinet': The KiNET, directly sending to a node's IP.
  • universe (Required): Art-Net universe for following DMX channels.
    • send_partial_universe (Optional; default=True): Some controllers only accept full DMX frames. Set toFalseto always send the full 512 channels to every universe.
    • output_correction (Optional; default=linear): applied to whole universe
      • 'linear'
      • 'quadratic' (see Graph)
      • 'cubic' (see Graph)
      • 'quadruple' (see Graph)

Device configuration variables

  • channel (Required): The DMX channel for the light (1-512)
  • name (Required): Friendly name for the light
  • type (Optional; default=dimmer):
    • 'fixed' (fixed single channel)
    • 'binary' (single channel)
    • 'dimmer' (single channel)
    • 'rgb' (red, green, blue)
    • 'rgbw' (red, green, blue, white)
    • 'rgbww' (red, green, blue, cool-white, warm-white)
    • 'color_temp' (cool-white, warm-white)
  • transition (Optional; default=0): Duration in seconds of the fading animation
  • output_correction (Optional; default=linear): applied to each channel, overrides universe setting.
    • 'linear'
    • 'quadratic' (see Graph)
    • 'cubic' (see Graph)
    • 'quadruple' (see Graph)
  • channel_size (Optional; default= 8bit): width of the channel sent to DMX device.
    • '8bit' (255 steps)
    • '16bit' (65k steps)
    • '24bit' (too many steps)
    • '32bit' (don't ask steps)
  • byte_order (Optional; default=big): For multi-byte channels, the bytes can be little-endian or big-endian.
  • min_temp (Optional; default=2700K): Only applies for types 'color_temp' and 'rgbww'
  • max_temp (Optional; default=6500K): Only applies for types 'color_temp' and 'rgbww'
  • channel_setup (Optional; seechannel_setup)

channel_setup

A string or list to customize the channel layout of your light.If a list is provided, fixed numeric values may be included.

Examples

channel_setup:Wrgb

White unscaled, red, green, blue

channel_setup:  -W  -r  -g  -b

Same as above

channel_setup:  -W  -r  -128  -b

Staticly sets the green channel on 50% brightness

Definition

  • d = dimmer (brightness 0 to 255)
  • c = cool white value, scaled for brightness
  • C = cool white value, unscaled
  • h = warm white value, scaled for brightness
  • H = warm white value, unscaled
  • t = temperature (0 = warm, 255 = cold)
  • T = temperature (255 = warm, 0 = cold)
  • r = red, scaled for brightness
  • R = red, unscaled
  • g = green, scaled for brightness
  • G = green unscaled
  • b = blue, scaled for brightness
  • B = blue, unscaled
  • w = white, scaled for brightness
  • W = white, unscaled
  • u = hue
  • U = saturation
  • [0,255] = static value between the range [0, 255]

Compatibility

TypeDefault value
fixed[0,255]0
binary[0,255]0
dimmer[0,255]0
color_tempdcChHtT[0,255]ch
rgbdrRgGbBw*W*uU[0,255]rgb
rgbwdrRgGbBwWuU[0,255]rgbw
rgbwwdcChHtTrRgGbBuU[0,255]rgbch

* In the case of a white channel being used in an RGB light fixture, the white channel is automatically calculated.

Supported features

  • Color-Mode.This allows full independent control over: RGB setting, RGB brightness, Cool White brightness and Warm white brightness. with a separate over all brightness control. This allows you to sent the color and white levels to any value independently and then adjust the brightness of the whole light without affecting the color of the light.
  • 16 bit DMX output.taking advantage of the separate brightness settings and the overall brightness allows lights to be dimmed to very low levels and still have a smooth fade due to the 65K steps you get from 16 bit
  • Transition time can be specified through services to fade to a color (for RGB fixtures) or value. This currently is set to run at 25 frames per second.
  • Brightness: Once a channel is turned on brightness can be controlled through the Home Assistant interface.
  • Color temperature: For dual channel warm white/cool white fixtures this tunes the white temperature.

Output correction

  • The graph shows different output depending on the output correction.

  • Quadratic or cubic results in much smoother and more pleasant fades when using LED Strips.The graph shows different output depending on the output correction.

From left to right:linear (default when nothing is set), quadratic, cubic then quadruple

Limitations

  • LEDS must be in same order as shown in channel

  • Notes DMX king eDMX4 Pro does not seem to work if you have send less than 16 channels. Work around just add a dummy light at channel 16 or higher

Future improvements

  • Lights are assigned a unique ID generated from the IP addreess, Port, Universe and Channel.

Supported hardware

  • Should work with any Art-Net, KiNet or e1.31 sACN enabled DMX interface.
  • Artnet interface tested on DMX King eDMX4 and ENTTEC DIN Ethergate 2.
  • e1.31 sACN interface tested on esPixelStick and Falcon F16v2

See Also

Art-Net™ Designed by and Copyright Artistic Licence Holdings Ltd

To enable debug logging for this component:

logger:logs:custom_components.artnet_led:debug

Legal

Art-Net™ Designed by and Copyright Artistic Licence

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python99.4%
  • Dockerfile0.6%

[8]ページ先頭

©2009-2025 Movatter.jp