Openhab 2.x DMX binding: getting color item to work

I’m trying to get de DMX binding to work but I can’t :frowning:

I’m working on a OpenHab 2.2 version. (using Sacn multicast)

In the “paper UI” it seems not to be possible to create al color or tunable white thing (only bridges, dimmer and chaser). I don’t know why the color and tunable white thing are not in the list.

So I try to the config file way…
I used the examples as in the dmx binding explanation: link
This way I get a color, dimmer and chaser item. the dimmer item is sending data but the color item isn’t sending any data?
why is that?

I also see that the dimmer and chaser item that are created in the config files are visual in the “paper UI” but the color item is not!

Also I’m not possible to link my dmx items to a group (use (groupname) at the end of the item).

Post you configuration (item and sitemap) and log-entries please.

I used the example that is on the Openhab Information site:

THING file

Bridge dmx:sacn-bridge:mybridge [ mode=“unicast”, address=“192.168.0.60”, universe=2 ] {
color rgb [dmxid=“5/3”, fadetime=1000, dimtime=10000 ]
dimmer single [dmxid=“50”, fadetime=1000, turnonvalue=“230”, turnoffvalue=“25” ]
chaser ampel [dmxid=“10,12,13”, steps=“100:255,0,0:1000|100:255,255,0:500|100:0,0,255:1000|100:0,255,0:500” ]
}

ITEM file

Color MyColorItem “My Color Item” { channel=“dmx:color:mybridge:rgb:color” }
Dimmer MyDimmerItem “My Dimmer Item” { channel=“dmx:dimmer:mybridge:single:brightness” }
Switch MyChaserItem “My Chaser Item” { channel=“dmx:chaser:mybridge:ampel:switch” }

and SITEMAP file

sitemap demo label=“Main Menu”
{
Frame {
// Color
Colorpicker item=MyColorItem

    // Dimmer
    Switch item=MyDimmerItem
    Slider item=MyDimmerItem
    
    // Chaser
    Switch item=MyChaserItem
}

}

Where I can find the log files you need?

Why is it not possible to create a COLOR DMX thing in the PAPER UI?

I found this in the logs:

events.log

when I change the dimmer item:

2018-04-11 20:19:56.004 [ome.event.ItemCommandEvent] - Item ‘MyDimmerItem’ received command 31
2018-04-11 20:19:56.025 [vent.ItemStateChangedEvent] - MyDimmerItem changed from 100 to 31

That works fine and I can see the DMX value’s changing.

When I change the color item I get this:

2018-04-11 20:21:50.731 [ome.event.ItemCommandEvent] - Item ‘MyColorItem’ received command 52.5,34.782608,45.098038
2018-04-11 20:21:50.749 [vent.ItemStateChangedEvent] - MyColorItem changed from 139.5,34.782608,45.098038 to 52.5,34.782608,45.098038

With the color Item no DMX data is comming out!

Now when I saved my .things file I get this:

2018-04-11 20:23:53.752 [hingStatusInfoChangedEvent] - ‘dmx:sacn-bridge:mybridge’ changed from ONLINE to UNKNOWN
2018-04-11 20:23:53.764 [me.event.ThingUpdatedEvent] - Thing ‘dmx:sacn-bridge:mybridge’ has been updated.
2018-04-11 20:23:53.767 [hingStatusInfoChangedEvent] - ‘dmx:sacn-bridge:mybridge’ changed from UNKNOWN to ONLINE
2018-04-11 20:23:53.769 [me.event.ThingUpdatedEvent] - Thing ‘dmx:dimmer:mybridge:single’ has been updated.
2018-04-11 20:23:53.772 [me.event.ThingUpdatedEvent] - Thing ‘dmx:chaser:mybridge:ampel’ has been updated.

Here you can see that the bridge, the single and ampel things gets an update and there is nothing to see about the color rgb thing???

in the openhab.log I see now:

2018-04-11 20:23:53.584 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘home.things’
2018-04-11 20:23:53.601 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘home.things’ is either empty or cannot be parsed correctly!
2018-04-11 20:23:53.684 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘home.things’

what I’m doing wrong?