Automation only triggered one time

It’s not clear how your trigger and your condition work together - could you post the whole automation? (If you post it as preformatted text - </> in the cogwheel toolbar - people reading will be able to copy it and examine it more easily).

One point: the automation triggers when power goes above 4000W. It won’t fire a second time until power drops below 4000W and goes up again. It’s possible this didn’t happen when you were testing.

This is what a condition block is supposed to do - it stops the automation running if all conditions are not true.