- 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