Thanks Breina. Relief to hear that you also use very similar hardware and setup I had not considered the possibility of adjusting the power supply output, good hint! I had also read somewhere about the long wires with PWM signal causing some kind of interference but havenāt understood if that is something I should be worried about or trying to mitigate. My longest channel cables between rack and lights (all 24vdc) is roughly 30m.
If it works for you it should also work for me.
BTW super grateful for this Home Assistant add-on, great work. Eager to see even tighter natively integrating in the future.
Thanks! Thereās still a lot I want to do to make it better for the future, but Iām already glad that it helps people.
Iām no expert, but I donāt think the interference will be a huge issue. Even if the PWM signal isnāt fully intact, it will suffice to dim your lights. I did minimize laying the light cables parallel to electric wires, for what itās worth.
Hey @Breina - I finally got around to migrating the site Iād built the original integration for last weekend over to your fork, all working really nicely and using the mode to not send frames unless thereās a change, looking forward to testing out the other Artnet modes but havenāt got around to that yet. Thanks for your work!
First of all: Thanks alot for this integration. In general it works like a charm.
There is one thing that simply does not work for me: output correction. It does not matter what I put in here (linear, quadratic, cubic or quadruple) and it does not matter if I put it before ādevicesā or in the channel section. The behaviour seems to be always the same and I would say it looks linear. Unfortunately I cannot check the values on the DMX bus because I have to possibility to read them.
I tried to add
logger:
logs:
custom_components.artnet_led: debug
to my configuration.yaml but I donāt see any additional information that could help me here.
Hi. I noticed that the output correction is not working. Neither for the universe nor for the channels.
So I dug deep into the rabbithole and was able to find the 2 underlying problems which can be solved very easily:
In light.py you use this code for the output correction:
The correct code for this would be: universe.set_output_correction(AVAILABLE_CORRECTIONS.get( universe_cfg[CONF_OUTPUT_CORRECTION] )) ... d.channel.set_output_correction(AVAILABLE_CORRECTIONS.get( device[CONF_OUTPUT_CORRECTION] ))
The second problem is probably also quite easy to fix but I am not very good with python. The problem ist the second part of the upper code where you set a correction for the channel. This is alsways set even if did not put it in your homeassistant configuration. So if you put an output correction of e.g quadratic for the universe and donāt put any output correction for the channel, it will be set to linear no matter what.
trying to figure why they are not showing up as entities in my HA
light:
- platform: artnet_led
host: 192.168.40.15 # IP of Art-Net Node
max_fps: 25 # 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
name: kids_slide_out
type: rgb
transition: 1
channel_size: 8bit
output_correction: quadratic
channel_setup: rbgw # Auto-calculated white channel
- channel: 4
name: living_slide_out
type: rgb
transition: 1
channel_size: 8bit
output_correction: quadratic
channel_setup: rbgw # Auto-calculated white channel
- channel: 8
name: kids_slide_out
type: rgb
transition: 1
channel_size: 16bit
output_correction: quadratic
channel_setup: rbgw # Auto-calculated white channel
Hello #sucre0107 ! In order to send dmx to the Enttec Open DMX USB Interface boards, you need to run the Art-Net to DMX program under windows and for that you have to run that computer 24/7 days and now with Pknight bi-directional ArtNet Controller CR011R it works super linked to router. I havenāt found anyone who can make me a program that runs under Python for the Enttec Open DMX USB Interface.
Sorry for my English but I translate with google translate and what you ask and what I answerā¦
does anybody know how to use āspecialā letters in >channel_setup< like t, T or u and U?
I have some different lights which I want control by NodeRed, ācolor_tempā lights by cold-warm value and ārgbā lights by hue and saturation.
When I add some of it, the whole integration doesnĀ“t works / all ArtNet entities are not available.
Is there an misunderstanding from my side how to use it or is there an issue?
Itās important to recognize the difference between how you can send light updates through HomeAssistant, and how HomeAssistant knows how to talk to DMX.
The left side is found in Developer tools in HA. I.e. if you have an RGB light, with HomeAssistant, you can send updates however you want, including hue/saturation.
The right side defines how your DMX channels are configured, which depends on how youāve wired it. This is what the letters youāve selected are for.
Hereās what to do;
Go to Developer tools > Services > Light turn on, and use the UI to configure your action.
Switch to YAML mode, and copy the data from your YAML. In this example, color_temp.
In Node-RED, create a call service node and add the data you just copied but in JSON format:
I would like discuss a feature request with you:
I use the light transition for all my lights. In general this works very well and as expected. Especially for soft start and soft stop everything is fine.
But I have a āproblemā with the behaviour of long transition times.
The issue is that the state of the HA entity does not represent the real state of the device.
Compare it to a roller shutter: The (estimated) state of the roller shutter gets updated periodically in Home Assistant so that you can see where the roller shutter is at a given time. Additionally you can even see if it is moving.
In my oppinion it should be similar when using light transition. Right now the state of the entity does not report the true state of the device and I think this is just wrong. It does not have to be updated every millisecond but once every second (as long as it has changed) or so would be nice.
I can construct a scenario where this would be an issue: Letās say you turn on a light with a transition of 10 minutes for whatever reason. Additionally you have an automation that does the following: Lower the brightness of the light by 20%.
Now after 5 minutes your light is dimmed to 50% (but HA says it is 100%). You trigger the automation because you want to lower the brightness by 20% (to effectively 30%) but HA raises it to (100-20 = ) 80% because it does not know the real state.
Donāt get me wrong here: I donāt have that automation. This is just a theoretical construct to emphasize the problem. I still think that the behaviour of the light entity with transition is not correct.
What do you think? Is this something that should be changed in this integration?
How do I map the Home Assistant devices so I can control them via ArtNet?
I have some light.ikea_of_sweden_tradfri_bulb_e27_cws_opal_600lm_light and other Zigbee bulbs that Iād like to expose over some lighting protocol so my lightshow can control the house, switch some smart sockets and turn the lights off (or have them available in the light show).
Iāve installed the addon and added the example config with an node_type: artnet-controller and now I can define devices to send out ArtNet packets to. But how do I do the other way round? Receive incoming input and have it control my non-ArtNet smart bulbs?
There are node red DMX or artnet addon modules you could tinker with to interface and synchronise between home assistant entities and artnet. May even be possible to achieve this within home assistant alone but I donāt know how.
Iāve read though a lot of this thread, and itās clear that DMX control is working well for people.
But the configurations never seem to set the DMX Address of the lighting fixture. Obviously Iām missing something. But in other DMX software I"ve used, it goes [Universe] ā [Device Address] ā [/n/ channels]
I have two lighting fixtures, one on address 0002, another on 0005. The first has 11 control Channels, the second only two.
All example configurations just seem to jump straight from Universe to Channels. Iām confused. How do I configure channel 1 on device 0002 and channel 1 on device 0005 ?
If device 0002 and 0005 are on separate artnet nodes (thus IP addresses), you are forced to use node type artnet-direct. This is because the artnet-controller implementation follows the spec and will only allow a single value per controller/channel combination.