Media player card discrete off button for projector that needs a repetition?

Hi I’m controlling an Optoma projector using SmartIR. The code set for the projector has discrete On/ Off. But in the media player card I get only one Power button. While this works as a toggle correctly with On and Off for alternate keypresses, the problem is that my projector needs the Power Off command to be sent twice for the action to take place. I am not able to accomplish this using the media card. What do I need to do?