Hello all,
I’m a total beginner with Openhab and I’m trying to control a simple RGB-Spot.
The spot is connected trough a DMX-Interface and OLA. The spot is configured fpr Univers 0, Channel 1,2,3,4.
I can control the spot through OLA DMX console, but when I try to control it through Openhab it shows some weird behaviour.
I added enabled DMX in configurations and added a line in the item file:
Color rgb_spot “RGB 10” (gOG) {dmx=“CHANNEL[1,2,3,4:100]”}
Strange thing: It only sends channel 1,2 and 3 - I can see updates in DMX monitor.
When I increase value for channel 4 through DMX Console the spot gets brighter.
I then can turn the spot off in Openhab (channel 4) - but can’t turn it on again!!!
Yesterday I tried several different settings in the items file
e.g. {dmx=“CHANNEL[1/4:1000]”}
{dmx=“CHANNEL[1:1000]”}
{dmx=“CHANNEL[1,2,3:1000]”}
…
Somehow the system suddenly decided to send two values per channel (Red was on channel 1 and 2, Green was on 3 and 4 and blue on 5 and 6).
I don’t know why, but this got reverted over night.
Both of those configurations are identical and correct.
A color item in openHAB only contains 3 channels (Hue/Saturation/Brightness).
When its value is changed, the dmx binding will convert these to the corresponding RGB or RGBW values.
Color pickers in openHAB may behave differently depending on the UI that you are using.
You can try setting the HSB values directly from the console:
I run OpenHab together with OLA on a headless Debian Box. There is no GUI. I tried to find out how to enable the Console (it’s part of Eclipse environment?). But what do I need to install?
I had Openhab Designer running on an Windows Computer and shared files via Samba. But it’s an rather “simple” interface. I couldn’t even create new files (had to Copy&Paste and rename the README). And suddenly I was not able to save files anymore. Till I found out that OpenHab updated access rights …
A quite frustrating experience.
So I’m back to edit files with nano on command line.
Today I tried to assign DMX channel 4 to a slider so i could change brightness via a separate control. In Firefox I wasn’t able to move the slider and Internet Explorer froooze as soon as I tried to move the slider.
So still no progress.
I can’t find the right infos in the wiki. I’m not a softwaredeveloper and don’t know Java. maybe that’s why I don’t find my way through all this scattered info
@davy how does openhab send rgb_spot 50,50,50 work, do I type it in Putty?
The problem is that I can not get the dmx to work at all on my RPI, i tried both port 9010 and 9090:
dmx:connection=localhost:9090
#dmx:connection=192.168.1.156:9090
17:30:35.840 [ERROR] [.d.internal.core.DmxController:268 ] - Error opening DMX connection.
java.lang.Exception: Error connecting to localhost:9090. Make sure the olad daemon is running.
at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:76) ~[ola-java-client-0.0.3.jar:na]
at ola.OlaClient.connect(OlaClient.java:72) ~[ola-java-client-0.0.3.jar:na]
at org.openhab.binding.dmx.ola.OlaConnection.open(OlaConnection.java:55) ~[bundlefile:na]
at org.openhab.binding.dmx.internal.core.DmxController.getConnection(DmxController.java:266) ~[bundlefile:na]
at org.openhab.binding.dmx.internal.core.DmxTransmitter.run(DmxTransmitter.java:62) [bundlefile:na]
at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0]
at java.util.TimerThread.run(Timer.java:505) [na:1.8.0]
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) ~[na:1.8.0]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0]
at java.net.Socket.<init>(Socket.java:434) ~[na:1.8.0]
at java.net.Socket.<init>(Socket.java:211) ~[na:1.8.0]
at ola.rpc.StreamRpcChannel.connect(StreamRpcChannel.java:70) ~[ola-java-client-0.0.3.jar:na]
... 6 common frames omitted
17:30:35.856 [DEBUG] [.p.rrd4j.internal.RRD4jService:113 ] - Stored 'LMB1' with state '0.125490209999999990930774629305233247578144073486328125' in rrd4j database (again)
I got rid of the errors, but it still does not work. In my addons folder i had 1.7 jar of ola and the artnet aswell as the dmx jar. Deleting everything except of ola and dmx got rid of the errors. So my question now is where the error is.Should I use artnet and not ola? How did you @davy got it to work. Can you show me ur addon folder and your ola settings? Thanks
To use the DMX binding, install the CORE bundle and ONE device interface bundle
I don’t use OLA anymore myself. I use the artnet bundle and an artnet device.
You could also use artnet and configure OLA as an artnet node.
Or you can use the OLA bundle with OLA and no artnet.
I have used OLA directly from openHAB previously, but not with the latest version of OLA.
If you configure OLA as an artnet node, that should work without issues.
Have you got this working in the meantime?
I have the same problem with an RGBW LED strip.
The 4th channel gets always value 0 when i change something in the colorpicker.
I can’t find a solution for it.