OpenHab+sonoff+mqtt

Hello there, new to this world, just bought some Sonoff devices (Sonoff Touch and Sonoff Basic).
Well my question is, can I configure the touch to do two diferent things? This FW states that you can configure short press and long press, so what I wanted to do in one of my rooms is, short press the Touch and the light turns on and off, and long press would do the same but also change the state of a sonoff basic that has the TV, and all my entertainment related equipment connected to it.