I don’t have your soundbar but I accomplished what you are trying to do by assigning the key to the far right of the ‘power on’ to the power off function. Since I don’t have cec, I created a macro for both the power on and power off buttons on all my devices to power everything on or off. Might work for what you are trying to do.