KNX Control-dimmer

Hi

I am running Openhabian 2.5 on RaspberryPI, trying to control Tradfri bulb using KNX wall switch:

        Thing device tradfri  {
        Type dimmer-control        : controlDimmer    "Control Dimmer"    [ switch="1/1/37+1/1/55", position="1/1/54", increaseDecrease="1/1/50", frequency=300  ]
	}

Dimmertcontrol doesen’t react to increase/decrease telegrams, they show up in logs but value is unchanged.
Switch telegrams and setting absolute position works ok, but switching off and on doesn’t generate feedback to KNX bus. However setting absolute value throught KNX or paperui generates GroupValueWrite telegram with proper response:

I need feedbak from openhab to KNX bus to display real values on wall switches (MDT Glasstaster).
Group Adress 1/1/50 is of type dimming control 3.007, i am sending 1% increase telegrams, with zero effect.
IS DPT 3.007 supported by OpenHab and how to fix this issue?

2020-01-07 22:01:20.873 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:01:22.772 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:01:22.953 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:01:23.162 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:01:23.382 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:01:23.620 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command INCREASE

2020-01-07 22:02:33.417 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:02:38.654 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:02:55.088 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:03:04.459 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command 49

2020-01-07 22:03:04.474 [nt.ItemStatePredictedEvent] - KNXDevice_ControlDimmerTest predicted to become 49

2020-01-07 22:03:04.512 [vent.ItemStateChangedEvent] - KNXDevice_ControlDimmerTest changed from 71 to 49

2020-01-07 22:03:11.176 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:03:11.181 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:03:14.117 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:03:21.369 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command REFRESH

2020-01-07 22:03:22.859 [ome.event.ItemCommandEvent] - Item 'KNXDevice_ControlDimmerTest' received command 99

2020-01-07 22:03:22.867 [nt.ItemStatePredictedEvent] - KNXDevice_ControlDimmerTest predicted to become 99

2020-01-07 22:03:22.895 [vent.ItemStateChangedEvent] - KNXDevice_ControlDimmerTest changed from 49 to 99

This type usually is used to represent a control panel.
You twiddle a knob on the hardware, it results in commands within openHAB.
You would normally route those commands in some way to actors that actually control lights.

If your device is a dimmer directly connected to lights, you’re probably using the wrong type.

My device is Ikea Trafdfri RGB bulb, as first step i would like to dim it using
MDT BE-GT2TW.01 getting fedback state on wall swicth( display in %), then control colour. For now switching on/off works without reporting state to KNX

Okay, so this is a glass panel, and so it should be the correct type.

Found this on github

Hopefully it will help. :crossed_fingers:

I had error in items configuration, now dimming works ok and actual value is diplayed on MDT panel. I share my configuration:

thing:

Bridge tradfri:gateway:mygateway [ host="192.168.15.101", code="vvvvvvxxxxx" ] {
    0210 chmurka1 "Chmurka 2" [ id=65540 ]
    0210 chmurka2 "Chmurka 2" [ id=65541 ]
    0210 reflektor "Reflektor" [ id=65538 ]
}
 Thing device tradfriKNX  {
        Type dimmer-control        : controlDimmer    "Control Dimmer"    [ switch="1/1/37+1/1/55", position="1/1/54", increaseDecrease="1/1/50", frequency=300  ]
	}

items:

Color Reflektor { channel="tradfri:0210:mygateway:reflektor:color" , channel="knx:device:bridge:tradfri:controlDimmer" }

Now it’s time to try setting colour with MDT.

1 Like