OpenHAB2 exec absolutely does not work

I nearly have the same problem. As I understood you have to use channels in Exec 2.0.

I tried the following (as I already described in this post ):

I’ve defined the following things:

// switch on with parameter '-t'
Thing exec:command:it14On  [command="pilight-send -p kaku_switch_old -i 14 -u 1 -t"]
// switch off with parameter '-f'
Thing exec:command:it14Off [command="pilight-send -p kaku_switch_old -i 14 -u 1 -f"]

and tried this in my items file:

Switch test1 { channel="exec:command:it14On:run", channel="exec:command:it14Off:run"}
Switch test2 { channel="[ON: exec:command:it14On:run], [OFF: exec:command:it14Off:run]"}

But when I push the button both commands are executed.

As workaround I trigger ON / OFF execution in a rule at the moment.

rule "IT14"
when
	Item Intertechno14 received command
then
	if (Intertechno0.state==ON) {
		executeCommandLine("pilight-send -p kaku_switch_old -i 14 -u 1 -t")
    } else {
		executeCommandLine("pilight-send -p kaku_switch_old -i 14 -u 1 -f")
    }
end

But I hope someone have an idea and can explain how to bind two exec commands to one switch.