LED Invert with Sonoff Basic Template

I am trying to inver the state of the LED without changing to a generic module template.
I have tried using LedPower and LedState. What am I missing?