I’m using TCP binding to connect to a "personalized KNX interface (a socket wich implements a service that directly connects to KNX) developed by me. I’ve implemented my own protocol over TCP, something like:
<knx>CMD={cmd};GA={a/b/c};DLEN={data_len};[VAL={value}]</knx>
So, for example, for sending ON
to a GroupAddress 0/0/1 of a light I would send:
<knx>CMD=WR;GA=0/0/1;DLEN=0;VAL=01</knx>
And if there’s a feedback GroupAddress 0/0/2 I would take back:
<knx>CMD=WR;GA=0/0/2;DLEN=0;VAL=01</knx>
I can control the lights correctly, but I can’t get the feedback because by using the .map files we can define just one value to ON
and one to OFF
.
My .items has:
Switch Light_map "Light_map" (Light) {tcp=">[ON:10.0.0.224:1234:MAP(knxer.map)], OFF:10.0.0.224:1234:MAP(knxer.map)]"}
and my .map:
ON=<knx>CMD=WR;GA=0/0/1;DLEN=0;VAL=01</knx>
OFF=<knx>CMD=WR;GA=0/0/1;DLEN=0;VAL=00</knx>
and of course, when I get the feedback from my service openHab complains there’s no translation in the .map.
Is there a away to do it with MAP? For now I’m using scripts to solve it.