KNX binding with samsung TV binding on openhab

Can someone help me to write the soitable code (rule) to make the knx system to control the samsung TV as follows : when the group address (for example 1/3/6) have a signal from sensor the TV should view the HDMI input 2 for a 10 sec then go back to same status at HDMI input 1…