Samsung TV turns off and back on immediately

I have Samsung MU7000 tv.
I’ve configured all the necessary information for WOL.
When the TV is ON, I can click any of the volume buttons and they work fine.
However, if I try to turn off the tv, it turns off and back on after 2 seconds.
Also, the state is always ON regardless to its true state

Im getting the same issue. I have confirmed that its not the Chromecast or Android TV turning it back on through CEC so Im stumped.

can I get a link to the page with the configuration info for the configuration.yaml ?

Here it is