I have my lights running using an Art-Net LED dimmer.
I’m using the DMX binding to get a color
thing in openHAB.
This is my .things file:
Bridge dmx:artnet-bridge:wohnzimmer_artnet "Wohnzimmer ArtNet Bridge" @ "Wohnzimmer" [ mode="unicast", address="192.168.0.208", universe=0 ] {
color wohnzimmer_licht_rgb "Wohnzimmer Licht RGB" @ "Wohnzimmer" [dmxid="33/3", fadetime=0, dimtime=0]
}
I have bound a Color
item to this thing in my .items file through a channel:
Color LivingRoomLightColor "Wohnzimmer Licht Farbe" <colorlight> (gLivingRoomLight, gLight, gMapDb) [ "Light", "Control" ] {channel="dmx:color:wohnzimmer_artnet:wohnzimmer_licht_rgb:color"[profile="system:follow"], alexa="Color"}
From my understanding the [profile="system:follow"]
should make the item update the thing, but ignore updates from the thing to the item (however I’ve testet it with and without it and it seems to make no difference).
Whenever I update the item (through clicking on a color in the main UI), I can see a log output like this:
2024-06-24 21:38:36.111 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LivingRoomLightColor' predicted to become 123,54,33
2024-06-24 21:38:36.113 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 316.957,54.76200,32.941 to 123,54,33
2024-06-24 21:38:36.139 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 123,54,33 to 240.000,46.47800,27.843
2024-06-24 21:38:36.141 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 240.000,46.47800,27.843 to 163.043,54.76200,32.941
2024-06-24 21:38:36.143 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 163.043,54.76200,32.941 to 122.608,54.76200,32.941
Sometimes it is even worse and it updates itself multiple times from a single click:
2024-06-24 21:38:38.083 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'LivingRoomLightColor' received command 212,54,33
2024-06-24 21:38:38.083 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LivingRoomLightColor' predicted to become 212,54,33
2024-06-24 21:38:38.085 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 122.608,54.76200,32.941 to 212,54,33
2024-06-24 21:38:38.117 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 212,54,33 to 125.712,35.59200,23.137
2024-06-24 21:38:38.120 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 125.712,35.59200,23.137 to 212.609,54.76200,32.941
2024-06-24 21:38:38.288 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'LivingRoomLightColor' received command 212,55,33
2024-06-24 21:38:38.289 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LivingRoomLightColor' predicted to become 212,55,33
2024-06-24 21:38:38.291 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 212.609,54.76200,32.941 to 212,55,33
2024-06-24 21:38:38.316 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 212,55,33 to 211.915,55.95200,32.941
2024-06-24 21:38:40.127 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'LivingRoomLightColor' received command 211,56,33
2024-06-24 21:38:40.129 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'LivingRoomLightColor' predicted to become 211,56,33
2024-06-24 21:38:40.130 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LivingRoomLightColor' changed from 211.915,55.95200,32.941 to 211,56,33
So the DMX binding is applying some dimming to the output it send out to the wire (which is nice), but is also sending back this information to the item (which is undesired in my case).
How can I prevent these updates from the thing to the item?