Can't send value in rule to KNX GA of type DPT 20.102

  • openHAB version: 2.4. KNX2 binding

What I want is just as simple than this:
In a rule I want to send a value to a KNX GA 2/6/30 having data type DPT 20.102 HVAC mode.

my.rules

var Number mode

mode = 4
HeatModeZwang_Buero.sendCommand(mode)

knx.items

Number HeatModeZwang_Buero “Heizung Mode Zwang Büro [%d]” <temperature> (gBuero) { channel=“knx:device:bridge:PAN6320_38_3:CH8” }

knx.things

Thing device PAN6320_38_3 “KNX Panel Büro 3f” [ address=“1.1.108”, fetch=false, pingInterval=600, readInterval=0 ]
{
Type number : CH8 “Temp Mode Zwang Büro” [ ga=“20.102:<2/6/30” ]
}

When the rule is triggered and the value is sent no value is seen in the ETS group monitor and the log shows:

2019-03-01 22:50:08.654 [INFO ] [lipse.smarthome.model.script.Heating] - <======== HeatLockBuero ========

==> /var/log/openhab2/events.log <==

2019-03-01 22:50:08.687 [ome.event.ItemCommandEvent] - Item ‘HeatModeZwang_Buero’ received command 4

==> /var/log/openhab2/openhab.log <==

2019-03-01 22:50:08.690 [INFO ] [lipse.smarthome.model.script.Heating] - Mode -> Frost

==> /var/log/openhab2/events.log <==

2019-03-01 22:50:08.722 [nt.ItemStatePredictedEvent] - HeatModeZwang_Buero predicted to become 4

==> /var/log/openhab2/openhab.log <==

2019-03-01 22:50:08.771 [DEBUG] [.internal.handler.DeviceThingHandler] - None of the configured GAs on channel ‘knx:device:bridge:PAN6320_38_3:CH8’ could handle the command ‘4’ of type 'DecimalType’

What can I do that the correct type is sent and openHab can cast to the correct KNX type 20.102 (1 byte)?

Many thanks in advance for any hints and help.

Bernhard

Not sure (I am newbie in OH2), but might it have to do with the ‘<’ in the ga ? AFAIK, this means ‘read-only’. What happens if you delete the ‘<’ ?

Cheers,
Marc

I am afraid that my answer might be a little late, but I encountered the same problem today:
Try using a String instead of Number item and send the strings listed in https://github.com/openhab/openhab-addons/issues/2203#issuecomment-327171203 as command.