having trouble with kodi/flirc/harmony/suspend

i dont know why i cant figure out how to get my chromebox to suspend after i turn off my tv. i assigned the E button for suspend and that works fine. i made a sequence using the harmony app to press the E button when i turn off the tv and it never works. the tv would turn off but my chromebox wont suspend using the sequence. if i suspend my box first then turn off the tv, the chromebox would wake up.