Dimming of a light

Hey,
I am quite new to OpenHab and to KNX also… so sorry if my questions are too low level :slight_smile:

My OpenHab 2 is installed and seems to work.
Switching lights does work.
But as soon, as i want to dimm that light, it does not work.

My setup for that example light:
// switch = 2/0/40
// dimm = 2/1/40
// value = 2/2/40
// state = 2/3/40
// rm_value = 2/4/40
// lock = 2/5/40
// reserved = 2/6/40

Dimmer Testlight “testlight [%d %%]” (EG_Wohnzimmer) { knx=“2/0/40+<2/3/40, 2/6/40, 2/1/40+<2/4/40” }

In the HABpanel the slider gets the switch-value of the lamp, so if i turn it on somewhere else, it moves from 0 to 100.
Changing the value looks inside the events.log like:
2017-06-05 19:27:54.725 [ItemStateChangedEvent ] - Testlight changed from 100 to 0
2017-06-05 19:27:58.507 [ItemCommandEvent ] - Item ‘Testlight’ received command 100
2017-06-05 19:28:16.700 [ItemCommandEvent ] - Item ‘Testlight’ received command 100
2017-06-05 19:28:19.601 [ItemCommandEvent ] - Item ‘Testlight’ received command 20
2017-06-05 19:28:19.850 [ItemCommandEvent ] - Item ‘Testlight’ received command 20
2017-06-05 19:28:21.557 [ItemCommandEvent ] - Item ‘Testlight’ received command 100

But… it does not change the light.

Anyone able to help me a little bit to the next level? :slight_smile:
Patrick

p. s. Do you have any good getting-started link to me? I understood the files and meanings of them, but as soon as it comes to knx i dont see any good documentation anywhere.

Hi,

The problem is in the item’s knx binding declared GA’s. It should be like this:

Dimmer Testlight "testlight [%d %%]" (EG_Wohnzimmer) { knx="2/0/40+<2/3/40, 2/1/40, 2/2/40+<2/4/40" }

If your GA’s are like you have stated, it should work!
About the documentation of the KNX binding, follow this.
May not be the most exhaustive documentation, but I find it very good for getting started!

BR,

George

1 Like

Hey George,

thanks that works! But… can you tell me why? :slight_smile: What are the parameters and why are they in that order?

Thanks,
Patrick

http://docs.openhab.org/addons/bindings/knx1/readme.html#example-1

1 Like

Hi,

The answer to your question is in the information you have provided:

Put that in to the context of what @Dim suggested in his last post and I am sure you will get it!

BR,

George

1 Like

Hey George,

thanks a lot. Works great. Still need to learn tons of OpenHAB stuff and the resources are not perfect for learning yet. But I ll keep moving forward :slight_smile:

Patrick