The DMX lighting protocol was originally intended for stage lighting (concerts, dance clubs etc). With the trend towards LED lighting there are increasingly more domestic lighting fixtures equipped with DMX (coparable to fixtures with DALI, the lighting protocol popular in Europe for large office buildings). Controller boards for LED strips are available for $10 or $20 on ebay, interfaces are cheap too, and there is even a IP based transport for DMX, called ArtNet. Also, compared to other protocols in that area (DALI or KNX) the protocol sems much more open, much less guarded by expensive specs documents, highly proprietary hardware, documentation avaliable in certain support/sales channels etc.
Having DMX would be cool. You can also trigger smoke generators or lasers with it
I am currently trying to compare home-assistant and OpenHAB and this is the one thing OpenHAB has that home-assistant doesnât. For everything else, home-assistant seems to have a much larger support.
This shouldnât be too hard to implement for basic support of both ArtNET and sACN (E1.31). Both of these have python libraries:
A more advanced implementation would need fixture definitions which can be used to define the features of a fixture type so that multiple fixtures of the same type can easily be added. I havenât started using HA as I am still in the research phase so I donât know how this would integrate with the ecosystem for consistency with other applications.
If no one else is able to implement, I can have a look into this but I wonât have time until the end of 2017.
Did somebody already look further in to this? I would really like to be able to use DMX⌠To me OLA would be the best option, but we have to think about how to define the channels. I will try to get this working, already have an Enttec laying around.
I ordered some parts to build an Art-Net node by myself. When I get it build together I can try stuff with it. Do you guys think we should focus on Art-Net, or also DMX? pythondmx doesnât seem to hard to integrate, so I think I will go for that option.
I think DMX would be much more easy to integrate for many users without the detour of ArtNet so having it as an option would be great.
edit:
I am just starting out with python, but I just discovered there is a python API provided by OLA.
OLA supports both ArtNet and various USB-DMX interfaces. So this seems to be pretty easy to implement and would be the bridge to both Art-Net and DMX. Maybe this one can help you out: https://www.openlighting.org/ola/developer-documentation/python-api/
Every DMX frame consists of 512 bytes. Each byte carries the value of one cannel. But you donât actually send any channel numbers. Just always the whole package. If there is no change in some channels, you just send the same values over and over, or zeros if you donât use them at all.
On the linked page you can find the section âsending dmxâ.
I guess this array is what you are looking for:
data = array.array(âBâ, [10, 50, 255])
In thise case channel 1 would have the value 10, ch.2 = 50 etc. Could that be right? But what is the âBâ good for?
I installed OLA, and the service itself is running fine. However, I canât get the python-libraries working. Iâm not that into python, but I think it has something to do with the PYTHONPATH.
The error I get is: ImportError: No module named 'ola.ClientWrapper'; 'ola' is not a package
I checked my pythonpath, and /usr/local/lib/python3.5/site-packages/ola is included there.
Somebody who can help me here? How would we integrate this package into HASS anyway, since it isnât available on pipâŚ
I installed OLA as well. I get the same error like you do when OLA is not running. After starting the OLA server, it seems to work fine.
Just need to install my USB-DMX adapter and set up a Universe for this error to disappear. Next step would be the integration into HA.
Personally I donât have any experiences developing in Python and for HA.
I did build it by that steps indeed. Sometimes it works, sometimes it doesnâtâŚ
I agree, we should get more people (developers) involved. My biggest concern is how to get OLA installed with Home Assistant since it isnât available on pip.
Will Home Assistant be able to work along with an existing controller (Dimmer panel) or will we have to connect it as number two in the chain and listen to the signals from the main controller and forward them to.
(Just started researching DMX and Raspberry Pi connections.)