Default USB OTG Issue

Hi all,

I am using tasker to display on and off the tablet with Power - Any. Everything works fine except for when I have an OTG cable connected, the display doesn't turn off when i disconnect power. Can somone advise? Thanks in advance.